Skip to content

Commit

Permalink
Merge pull request #5614 from ProcessMaker/bugfix/FOUR-12192
Browse files Browse the repository at this point in the history
[34709 - 34744] Unable to import processes FIdelity Bank Prod
  • Loading branch information
ryancooley committed Nov 30, 2023
2 parents 0cf45e6 + 2987dfa commit 3588a0c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ProcessMaker/ImportExport/Manifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,11 @@ private static function handleCasts(&$model)
break;
case 'object':
if (!is_object($model->$field)) {
$model->$field = json_decode($model->$field);
if (gettype($model->$field) !== 'array') {
$model->$field = json_decode($model->$field);
} else {
$model->$field = (object)$model->$field;
}
}
break;
}
Expand Down

0 comments on commit 3588a0c

Please sign in to comment.