Skip to content

Commit

Permalink
Give the operation a more clear name
Browse files Browse the repository at this point in the history
  • Loading branch information
Hipska committed Sep 17, 2020
1 parent e0079a4 commit a37fb4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions application/displayblock.class.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -1677,11 +1677,11 @@ public function GetRenderContent(WebPage $oPage, $aExtraParams = array(), $sId)
{
if (array_key_exists('down', $aRelationInfo))
{
$aActions[$sRelationCode.'_down'] = array ('label' => $aRelationInfo['down'], 'url' => "{$sRootUrl}pages/$sUIPage?operation=navigate&relation=$sRelationCode&direction=down&class=$sClass&id=$id{$sContext}") + $aActionParams;
$aActions[$sRelationCode.'_down'] = array ('label' => $aRelationInfo['down'], 'url' => "{$sRootUrl}pages/$sUIPage?operation=relations&relation=$sRelationCode&direction=down&class=$sClass&id=$id{$sContext}") + $aActionParams;
}
if (array_key_exists('up', $aRelationInfo))
{
$aActions[$sRelationCode.'_up'] = array ('label' => $aRelationInfo['up'], 'url' => "{$sRootUrl}pages/$sUIPage?operation=navigate&relation=$sRelationCode&direction=up&class=$sClass&id=$id{$sContext}") + $aActionParams;
$aActions[$sRelationCode.'_up'] = array ('label' => $aRelationInfo['up'], 'url' => "{$sRootUrl}pages/$sUIPage?operation=relations&relation=$sRelationCode&direction=up&class=$sClass&id=$id{$sContext}") + $aActionParams;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion pages/UI.php
Original file line number Diff line number Diff line change
Expand Up @@ -1854,7 +1854,7 @@ function DisplayNavigatorGroupTab($oP)
///////////////////////////////////////////////////////////////////////////////////////////

case 'swf_navigate': /** @deprecated SWF was removed in iTop */
case 'navigate': // Graphical display of the relations "impact" / "depends on"
case 'relations': // Graphical display of the relations "impact" / "depends on"
require_once(APPROOT.'core/simplegraph.class.inc.php');
require_once(APPROOT.'core/relationgraph.class.inc.php');
require_once(APPROOT.'core/displayablegraph.class.inc.php');
Expand Down

0 comments on commit a37fb4b

Please sign in to comment.