mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-20 09:08:42 +02:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user