diff --git a/portal/index.php b/portal/index.php
index 6c13d7af0..c3110afeb 100644
--- a/portal/index.php
+++ b/portal/index.php
@@ -485,7 +485,7 @@ function GetFieldAsHtml($oObj, $sAttCode)
{
$aRow = array();
- $aRow['key'] = ''.$oRequest->Get('ref').'';
+ $aRow['key'] = ''.$oRequest->Get('ref').'';
$sHilightClass = $oRequest->GetHilightClass();
if ($sHilightClass != '')
{
@@ -498,6 +498,12 @@ function GetFieldAsHtml($oObj, $sAttCode)
$aValues[$oRequest->GetKey()] = $aRow;
}
$oP->Table($aAttribs, $aValues);
+ // Temprory until we merge re-use the paginated tables:
+ $oP->add_ready_script(
+<<GetAttributeFlags($sAttCode);
- if ( ($iFlags & OPT_ATT_HIDDEN) == 0)
+ if (MetaModel::IsValidAttCode(get_class($oRequest), $sAttCode))
{
- // The field is visible, add it to the current column
- $val = GetFieldAsHtml($oRequest, $sAttCode);
- $aDetails[$sTab][$sColIndex][] = array( 'label' => ''.MetaModel::GetLabel('UserRequest', $sAttCode).'', 'value' => $val);
- $iInputId++;
+ $iFlags = $oRequest->GetAttributeFlags($sAttCode);
+ if ( ($iFlags & OPT_ATT_HIDDEN) == 0)
+ {
+ // The field is visible, add it to the current column
+ $val = GetFieldAsHtml($oRequest, $sAttCode);
+ $aDetails[$sTab][$sColIndex][] = array( 'label' => ''.MetaModel::GetLabel('UserRequest', $sAttCode).'', 'value' => $val);
+ $iInputId++;
+ }
}
}
}