BUG 8549 Missing data in grid when delete the first row SOLVED
- just as in a second dynaform you delete the first row of the grid and without submit re open the case from the Inbox or does a Previous Step, the information which had the grid is lost and this deconfigured - This problem was solved by rearranging the keys of the grids in gulliver
This commit is contained in:
@@ -13,8 +13,14 @@ if( isset($request) ){
|
||||
$oApp= new Cases();
|
||||
$aFields = $oApp->loadCase($_SESSION['APPLICATION']);
|
||||
unset($aFields['APP_DATA'][$_POST['gridname']][$_POST['rowpos']]);
|
||||
$initialKey = 1;
|
||||
foreach ($aFields['APP_DATA'][$_POST['gridname']] as $key => $value) {
|
||||
$oFields[$initialKey] = $value;
|
||||
$initialKey++;
|
||||
$aFields['APP_DATA'][$_POST['gridname']] = $oFields;
|
||||
}
|
||||
$oApp->updateCase($_SESSION['APPLICATION'], $aFields);
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
/** widgets **/
|
||||
|
||||
Reference in New Issue
Block a user