This commit is contained in:
Roly Rudy Gutierrez Pinto
2016-04-11 15:01:00 -04:00
parent 88fe91aae6
commit 37d92d455d

View File

@@ -427,6 +427,17 @@ function evaluateFunction ($aGrid, $sExpresion)
$pmScript->execute();
$aGrid[$i] = $pmScript->aFields;
//compatibility for var_label
foreach ($aFields as $j => $val) {
if (isset($aGrid[$i][$j . "_label"]) && empty($aGrid[$i][$j . "_label"]) && !empty($aGrid[$i][$j])) {
$aGrid[$i][$j . "_label"] = $aGrid[$i][$j];
}
if (substr($j, -6) !== "_label" && ($val !== $aGrid[$i][$j])) {
$aGrid[$i][$j . "_label"] = $aGrid[$i][$j];
}
}
//end
}
return $aGrid;
}