This topic contains 3 replies, has 2 voices, and was last updated by Rodolfo 8 years, 6 months ago.
- Topic
Hi there,
I’m working with a cloned workflow “Custom B2B Sales Process” in order to add some fields. When I try to add a field (Select with 3 options), it generates error while trying to save the workflow.
"Could not save workflow."
There is no relevant information being generated in dev.log but I found these logs while inspecting this route:
/api/rest/latest/workflowdefinition/b2b_flow_sales_funnel_clone_5605aebc51cb3
“Notice: Undefined index: enum in /projects/orocrm-1.10.0/vendor/oro/platform/src/Oro/Bundle/WorkflowBundle/Model/AttributeGuesser.php on line 337”
“Notice: Undefined index: enum in /projects/orocrm-1.10.0/vendor/oro/platform/src/Oro/Bundle/WorkflowBundle/Model/AttributeGuesser.php on line 338”
{“error”:”Catchable Fatal Error: Argument 3 passed to Oro\\Bundle\\WorkflowBundle\\Model\\AttributeGuesser::formatResult() must be of the type array, null given, called in \/projects\/orocrm-1.10.0\/vendor\/oro\/platform\/src\/Oro\/Bundle\/WorkflowBundle\/Model\/AttributeGuesser.php on line 339 and defined in \/projects\/orocrm-1.10.0\/vendor\/oro\/platform\/src\/Oro\/Bundle\/WorkflowBundle\/Model\/AttributeGuesser.php on line 253″}
Executing xdebug we can see this:
$this->doctrineTypeMapping[$fieldType][‘type’] is equals to “null”
$this->doctrineTypeMapping[$fieldType][‘options’] is equals to “null”$fieldType is: “enum”, but if we try to find inside $this->doctrineTypeMapping we don’t see any “enum”
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171($this->doctrineTypeMapping)Array([string] => Array([type] => string[options] => Array())[integer] => Array([type] => integer[options] => Array())[smallint] => Array([type] => integer[options] => Array())[bigint] => Array([type] => integer[options] => Array())[boolean] => Array([type] => boolean[options] => Array())[decimal] => Array([type] => float[options] => Array())[date] => Array([type] => object[options] => Array([class] => DateTime))[time] => Array([type] => object[options] => Array([class] => DateTime))[datetime] => Array([type] => object[options] => Array([class] => DateTime))[datetimetz] => Array([type] => object[options] => Array([class] => DateTime))[text] => Array([type] => string[options] => Array())[array] => Array([type] => array[options] => Array())[simple_array] => Array([type] => array[options] => Array())[json_array] => Array([type] => array[options] => Array())[float] => Array([type] => float[options] => Array())[guid] => Array([type] => string[options] => Array())[percent] => Array([type] => float[options] => Array())[money] => Array([type] => float[options] => Array()))Do you guys have any idea how can I fix this?
Thank you.
The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.