[Vtigercrm-commits] [vtiger development] #7201: Workflow for Documents module?
vtiger development
vtiger-tickets at trac.vtiger.com
Thu May 2 10:18:58 UTC 2013
#7201: Workflow for Documents module?
-------------------------+-------------------------
Reporter: westley | Owner: developer
Type: enhancement | Status: new
Priority: minor | Milestone: Unassigned
Component: vtigercrm | Version: 5.3.0 RC
Severity: Medium | Resolution:
Keywords: |
-------------------------+-------------------------
Comment (by stprasad):
Hi,
I was intrigued that Documents are not enabled for Workflow support. There
seemed to be no apparent reason, and looking into the code, I found the
blocks. After removing them, Workflows could be setup for Documents
In the script,
function checkModuleWorkflow and function vtGetModules have a variable
$modules_not_supported = array(‘Documents’, 'Calendar', 'Emails', 'Faq',
'Events', 'PBXManager', 'Users');
and
$modules_not_supported = array(‘Documents’,'Emails', 'PBXManager');
The String ‘Documents’ must be removed from these array declarations
Workflow task creation seems to fail when file attachment type fields are
in the module record.
This is happening due to the switch condition written in
include/events/VTWSEntityType.inc in the function getFieldType($fieldName)
in the switch case need to handle type of file
155,157d154
< case 'file':
< $et->type = 'File';
< break;
the above lines need to be added
With these changes, the Documents module, is made ready for workflow
establishment. Create some workflows, and it seemed to work well
Hope this helps those users who need to work more with Documnents module
Regards
S.T.Prasad
Chief Shikari,
www.vtigress.com
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7201#comment:1>
vtiger development <http://trac.vtiger.com/>
vtiger CRM
More information about the vtigercrm-commits
mailing list