Bug fix: support the display of HTML fields in the lists in the new portal.

SVN:trunk[4324]
This commit is contained in:
Denis Flaven
2016-08-11 09:28:23 +00:00
parent 43d3cfefb5
commit bf94dfa894
4 changed files with 8 additions and 8 deletions

View File

@@ -545,7 +545,7 @@ class BrowseBrickController extends BrickController
$aRow[$key] = array(
'level_alias' => $key,
'id' => $value->GetKey(),
'name' => $value->Get($aLevelsProperties[$key]['name_att']),
'name' => $value->GetAsHTML($aLevelsProperties[$key]['name_att']),
'class' => get_class($value),
'action_rules_token' => static::PrepareActionRulesForItem($value, $key, $aLevelsProperties)
);
@@ -561,7 +561,7 @@ class BrowseBrickController extends BrickController
$aRow[$key]['fields'] = array();
foreach ($aLevelsProperties[$key]['fields'] as $aField)
{
$aRow[$key]['fields'][$aField['code']] = $value->Get($aField['code']);
$aRow[$key]['fields'][$aField['code']] = $value->GetAsHTML($aField['code']);
}
}
}
@@ -610,7 +610,7 @@ class BrowseBrickController extends BrickController
$aItems[$sCurrentIndex] = array(
'level_alias' => $aCurrentRowKeys[0],
'id' => $aCurrentRowValues[0]->GetKey(),
'name' => $aCurrentRowValues[0]->Get($aLevelsProperties[$aCurrentRowKeys[0]]['name_att']),
'name' => $aCurrentRowValues[0]->GetAsHTML($aLevelsProperties[$aCurrentRowKeys[0]]['name_att']),
'class' => get_class($aCurrentRowValues[0]),
'subitems' => array(),
'action_rules_token' => static::PrepareActionRulesForItem($aCurrentRowValues[0], $aCurrentRowKeys[0], $aLevelsProperties)

View File

@@ -389,7 +389,7 @@ class ManageBrickController extends BrickController
}
else
{
$sValue = $oAttDef->GetValueLabel($oCurrentRow->Get($sItemAttr));
$sValue = $oCurrentRow->GetAsHTML($sItemAttr);
}
unset($oAttDef);

View File

@@ -73,11 +73,11 @@
// For the same reason, tooltip widget is created in "drawCallback" instead of here.
if( (data.tooltip !== undefined) && (data.tooltip !== ''))
{
cellElem.html( $('<span></span>').attr('title', data.tooltip).attr('data-toggle', 'tooltip').text(data.name).prop('outerHTML') );
cellElem.html( $('<span></span>').attr('title', data.tooltip).attr('data-toggle', 'tooltip').html(data.name).prop('outerHTML') );
}
else
{
cellElem.text(data.name);
cellElem.html(data.name);
}
// Building actions

View File

@@ -103,7 +103,7 @@
// Preparing the cell data
cellElem = (itemActions.length > 0) ? $('<a></a>') : $('<span></span>');
cellElem.text(row.attributes[att_code].value);
cellElem.html(row.attributes[att_code].value);
// Building actions
if(itemActions.length > 0)
{