Merged in bugfix/HOR-2886 (pull request #5546)

HOR-2886

Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
Approved-by: Paula Quispe <paula.quispe@processmaker.com>
This commit is contained in:
Julio Cesar Laura Avendaño
2017-03-20 14:24:36 +00:00

View File

@@ -751,6 +751,11 @@ class Bpmn extends Handler
//Check and validate Message Flow
$this->throwExceptionFlowIfIsAnInvalidMessageFlow($data);
//Validating FLO_CONDITION value
if (array_key_exists('FLO_CONDITION', $data) && is_null($data['FLO_CONDITION'])) {
$data['FLO_CONDITION'] = '';
}
//Create
$flow = new Flow();
$flow->fromArray($data, BasePeer::TYPE_FIELDNAME);
@@ -782,6 +787,11 @@ class Bpmn extends Handler
//Check and validate Message Flow
$this->throwExceptionFlowIfIsAnInvalidMessageFlow($data);
//Validating FLO_CONDITION value
if (array_key_exists('FLO_CONDITION', $data) && is_null($data['FLO_CONDITION'])) {
$data['FLO_CONDITION'] = '';
}
//Update
$flow = FlowPeer::retrieveByPk($floUid);
$flow->fromArray($data);