[Vtigercrm-commits] [vtiger development] #6233: workflow: conditions don't show when one has quotes
vtiger development
vtiger-tickets at trac.vtiger.com
Sat Aug 8 04:30:58 EDT 2009
#6233: workflow: conditions don't show when one has quotes
--------------------------------------+-------------------------------------
Reporter: joebordes | Owner: developer
Type: defect | Status: new
Priority: unassigned | Milestone: 5.1.1
Component: vtigercrm | Version: 5.1.0
Keywords: workflow condition quote |
--------------------------------------+-------------------------------------
If any condition on a workflow has a single or double quote in the value
field, the conditions can't be parsed nor shown. They are saved correctly
in the database but they don't appear when you try to edit the workflow.
The error is in javascript JSON:
double quotes: throw new SyntaxError('parseJSON');
single quotes: missing ) after argument list
For example:
var conditions =
JSON.parse('[{"fieldname":"firstname","operation":"is","value":"Mc'millan"},{"fieldname":"mailingcity","operation":"is","value":"city"}]');
Tested in online demo 5.1
Workflows: "Quote condition problem" and "Quote Condition problem 2"
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/6233>
vtiger development <http://trac.vtiger.com/>
vtigerCRM
More information about the vtigercrm-commits
mailing list