BUG-12494 SOLVED

This commit is contained in:
Roly Gutierrez
2013-09-10 10:31:08 -04:00
parent c45067440b
commit fc46da00a7

View File

@@ -1747,33 +1747,36 @@ class G
$arrayGrid = array_unique($arrayGrid); $arrayGrid = array_unique($arrayGrid);
foreach ($arrayGrid as $index => $value) { foreach ($arrayGrid as $index => $value) {
$grdName = $value; if($value !== "") {
$grdName = $value;
$strContentAux1 = $strContentAux; $strContentAux1 = $strContentAux;
$strContentAux = null; $strContentAux = null;
$ereg = "/^(.*)@>" . $grdName . "(.*)@<" . $grdName . "(.*)$/"; $ereg = "/^(.*)@>" . $grdName . "(.*)@<" . $grdName . "(.*)$/";
while (preg_match($ereg, $strContentAux1, $arrayMatch2)) { while (preg_match($ereg, $strContentAux1, $arrayMatch2)) {
$strData = null; $strData = null;
if (isset($aFields[$grdName]) && is_array($aFields[$grdName])) { if (isset($aFields[$grdName]) && is_array($aFields[$grdName])) {
foreach ($aFields[$grdName] as $aRow) { foreach ($aFields[$grdName] as $aRow) {
foreach ($aRow as $sKey => $vValue) { foreach ($aRow as $sKey => $vValue) {
if (!is_array($vValue)) { if (!is_array($vValue)) {
$aRow[$sKey] = nl2br($aRow[$sKey]); $aRow[$sKey] = nl2br($aRow[$sKey]);
}
} }
}
$strData = $strData . G::replaceDataField($arrayMatch2[2], $aRow); $strData = $strData . G::replaceDataField($arrayMatch2[2], $aRow);
}
} }
$strContentAux1 = $arrayMatch2[1];
$strContentAux = $strData . $arrayMatch2[3] . $strContentAux;
} }
$strContentAux1 = $arrayMatch2[1]; $strContentAux = $strContentAux1 . $strContentAux;
$strContentAux = $strData . $arrayMatch2[3] . $strContentAux;
} }
$strContentAux = $strContentAux1 . $strContentAux;
} }
} }