Merged in bugfix/PMCORE-3955 (pull request #8545)
PMCORE-3955 When a Custom case list is reordered the Table Settings is not reset Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
@@ -213,10 +213,7 @@ class CaseList extends Model
|
|||||||
if (!property_exists($uscSetting->{$type}->customCaseList, $calId)) {
|
if (!property_exists($uscSetting->{$type}->customCaseList, $calId)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!property_exists($uscSetting->{$type}->customCaseList->{$calId}, 'columns')) {
|
unset($uscSetting->{$type}->customCaseList->{$calId});
|
||||||
continue;
|
|
||||||
}
|
|
||||||
$uscSetting->{$type}->customCaseList->{$calId}->columns = ['detail', 'actions'];
|
|
||||||
UserConfig::editSetting($userConfig->USR_ID, 'userConfig', (array) $uscSetting);
|
UserConfig::editSetting($userConfig->USR_ID, 'userConfig', (array) $uscSetting);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user