Customer portal : Manage Brick : Edit action hyperlink is now setted on the first column if there is no friendlyname. Until now, if no friendlyname was available on the object class, there was no was of editing the object.

SVN:trunk[4171]
This commit is contained in:
Guillaume Lajarige
2016-06-02 08:26:06 +00:00
parent e9dde4ee58
commit e0909766fd

View File

@@ -313,6 +313,9 @@ class ManageBrickController extends BrickController
{
$aColumnsAttrs = array_merge(array($sTitleAttrCode), $aColumnsAttrs);
}
// Defining which attribute will open the edition form)
$sMainActionAttrCode = $aColumnsAttrs[0];
// Loading columns definition
$aColumnsDefinition = array();
foreach ($aColumnsAttrs as $sColumnAttr)
@@ -334,8 +337,9 @@ class ManageBrickController extends BrickController
foreach ($aColumnsAttrs as $sItemAttr)
{
$aActions = array();
// Set the edit action to the main attribute only
if ($sItemAttr === $sTitleAttrCode)
// Set the edit action to the main (first) attribute only
//if ($sItemAttr === $sTitleAttrCode)
if ($sItemAttr === $sMainActionAttrCode)
{
$aActions[] = array(
'type' => ManageBrick::ENUM_ACTION_EDIT,