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:
Roly Gutierrez
2022-08-30 16:19:20 +00:00
committed by Julio Cesar Laura Avendaño

View File

@@ -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);
} }
} }