PMCORE-3232 Service /api/1.0/workflow/home/config/1/test return 400 if there is not this setting
This commit is contained in:
@@ -34,10 +34,14 @@ class UserConfig extends Model
|
||||
if (empty($userConfig)) {
|
||||
return null;
|
||||
}
|
||||
$setting = json_decode($userConfig->USC_SETTING);
|
||||
if (empty($setting)) {
|
||||
$setting = new stdClass();
|
||||
}
|
||||
return [
|
||||
"id" => $userConfig->USR_ID,
|
||||
"name" => $userConfig->USC_NAME,
|
||||
"setting" => json_decode($userConfig->USC_SETTING)
|
||||
"setting" => $setting
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user