Fix for workflows:: Vtiger deficiency


Dear vtiger users,
I have been waiting for so many days now to write an article under the ‘FIX THAT BUG’ category.
Here it is.
In vtiger modules, workflows do not like attachment or file type fields. The error message is also a bit cryptic and leaves the user, kind of confused. To solve a client’s need to build a workflow for a module that had a file type field, I started to check how it could be overcome without breaking any vtiger principles.
I did that and I succeeded.

You need to replace this old code with the new code.
Both code snippets given here for your reference.

Enjoy!!

As always, you can mail info@vtigress.com for more help in implementation.

include/events/VTWSEntityType.inc has to be updated around line 171
REPLACE OLD CODE


case 'currency':
 $et->type = 'Number';
 $et->format = 'Decimal';
 break;
default:
 print_r($type);
 throw new Exception($type["name"]." is not supported yet.");
 

WITH NEW CODE LINES



case 'currency':
 $et->type = 'Number';
 $et->format = 'Decimal';
 break;
case 'file':
 break;
default:
 print_r($type);
 throw new Exception($type["name"]." is not supported yet.");
 
Advertisements

One thought on “Fix for workflows:: Vtiger deficiency

  1. […] Dear vtiger users, I have been waiting for so many days now to write an article under the 'FIX THAT BUG' category. Here it is. In vtiger modules, workflows do not like attachment or file type field…  […]

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: