PMCORE-3955 When a Custom case list is reordered the Table Settings is not reset

This commit is contained in:
Roly Gutierrez
2022-08-30 11:39:42 -04:00
parent ca1720add9
commit 67c69b5f74

View File

@@ -214,10 +214,7 @@ class CaseList extends Model
if (!property_exists($uscSetting->{$type}->customCaseList, $calId)) {
continue;
}
if (!property_exists($uscSetting->{$type}->customCaseList->{$calId}, 'columns')) {
continue;
}
$uscSetting->{$type}->customCaseList->{$calId}->columns = ['detail', 'actions'];
unset($uscSetting->{$type}->customCaseList->{$calId});
UserConfig::editSetting($userConfig->USR_ID, 'userConfig', (array) $uscSetting);
}
}