From 67c69b5f743da5e56ede49713f6ffbf145c79202 Mon Sep 17 00:00:00 2001 From: Roly Gutierrez Date: Tue, 30 Aug 2022 11:39:42 -0400 Subject: [PATCH] PMCORE-3955 When a Custom case list is reordered the Table Settings is not reset --- workflow/engine/src/ProcessMaker/Model/CaseList.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/workflow/engine/src/ProcessMaker/Model/CaseList.php b/workflow/engine/src/ProcessMaker/Model/CaseList.php index 99241d6ca..95a364b94 100644 --- a/workflow/engine/src/ProcessMaker/Model/CaseList.php +++ b/workflow/engine/src/ProcessMaker/Model/CaseList.php @@ -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); } }