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:
Alvaro Campos
2012-03-09 16:44:53 -04:00
parent 509da99a9e
commit 8e2f3935e9

View File

@@ -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 **/