27 Nov 2013
November 27, 2013

Fix for workflows:: Vtiger deficiency

1 Comment

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 sales@vtigress.com for more help in implementation.

include/events/VTWSEntityType.inc has to be updated around line 171
REPLACE OLD CODE
[code language=”PHP”]

case ‘currency’:
$et->type = ‘Number’;
$et->format = ‘Decimal’;
break;
default:
print_r($type);
throw new Exception($type[“name”].” is not supported yet.”);
[/code]

WITH NEW CODE LINES
[code language=”PHP”]

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.”);
[/code]

One Response to 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…  […]


[top]

Leave a Reply

Your email address will not be published. Required fields are marked *