Merged in gproly/processmaker/PM-4421 (pull request #3366)

PM-4421
This commit is contained in:
Julio Cesar Laura Avendaño
2015-12-10 16:39:57 -04:00

View File

@@ -1008,7 +1008,11 @@ class Cases
}
if ((is_array($FieldsDifference)) && (count($FieldsDifference) > 0)) {
$oCurrentDynaform = new Dynaform();
$currentDynaform = $oCurrentDynaform->Load($Fields['CURRENT_DYNAFORM']);
try {
$currentDynaform = $oCurrentDynaform->Load($Fields['CURRENT_DYNAFORM']);
} catch (Exception $e) {
$currentDynaform["DYN_CONTENT"] = "";
}
//There are changes
$Fields['APP_STATUS'] = (isset($Fields['APP_STATUS'])) ? $Fields['APP_STATUS'] : $FieldsBefore['APP_STATUS'];
$appHistory = new AppHistory();