mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
# Conflicts: # core/cmdbsource.class.inc.php # core/config.class.inc.php # core/displayablegraph.class.inc.php # core/log.class.inc.php # datamodels/2.x/itop-config-mgmt/dictionaries/tr.dict.itop-config-mgmt.php # datamodels/2.x/itop-knownerror-mgmt/dictionaries/tr.dict.itop-knownerror-mgmt.php # datamodels/2.x/itop-service-mgmt/dictionaries/tr.dict.itop-service-mgmt.php # datamodels/2.x/itop-tickets/tr.dict.itop-tickets.php # datamodels/2.x/itop-welcome-itil/tr.dict.itop-welcome-itil.php # dictionaries/tr.dictionary.itop.core.php # dictionaries/tr.dictionary.itop.ui.php # pages/UI.php # setup/itopdesignformat.class.inc.php # test/core/LogAPITest.php # test/integration/iTopModulesPhpVersionChecklistTest.php # test/postbuild_integration/SetupCssIntegrityChecklistTest.php # test/postbuild_integration/iTopModuleXmlInstallationChecklistTest.php # test/status/StatusTest.php
This commit is contained in:
50
pages/UI.php
50
pages/UI.php
@@ -253,6 +253,16 @@ function DisplayMultipleSelectionForm(WebPage $oP, DBSearch $oFilter, string $sN
|
||||
$oP->AddUiBlock($oForm);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $oP
|
||||
* @param $aResults
|
||||
* @param $sRelation
|
||||
* @param $sDirection
|
||||
* @param $oObj
|
||||
* for operation : 'swf_navigator'
|
||||
*
|
||||
* @throws \DictExceptionMissingString
|
||||
*/
|
||||
function DisplayNavigatorListTab($oP, $aResults, $sRelation, $sDirection, $oObj)
|
||||
{
|
||||
$oP->SetCurrentTab('UI:RelationshipList');
|
||||
@@ -264,6 +274,7 @@ function DisplayNavigatorListTab($oP, $aResults, $sRelation, $sDirection, $oObj)
|
||||
}
|
||||
$oP->add("<div id=\"impacted_objects_lists\">");
|
||||
$oP->add("<div id=\"impacted_objects_lists_placeholder\"></div>");
|
||||
|
||||
/*
|
||||
* Content is rendered asynchronously via pages/ajax.render.php?operation=relation_lists
|
||||
*/
|
||||
@@ -1775,6 +1786,7 @@ EOF
|
||||
$oP->SetCurrentTabContainer('Navigator');
|
||||
|
||||
$sFirstTab = MetaModel::GetConfig()->Get('impact_analysis_first_tab');
|
||||
$sLazyLoading = MetaModel::GetConfig()->Get('impact_analysis_lazy_loading');
|
||||
$sContextKey = "itop-config-mgmt/relation_context/$sClass/$sRelation/$sDirection";
|
||||
|
||||
// Check if the current object supports Attachments, similar to AttachmentPlugin::IsTargetObject
|
||||
@@ -1789,26 +1801,26 @@ EOF
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Display the tabs
|
||||
if ($sFirstTab == 'list')
|
||||
{
|
||||
DisplayNavigatorListTab($oP, $aResults, $sRelation, $sDirection, $oObj);
|
||||
$oP->SetCurrentTab('UI:RelationshipGraph');
|
||||
$oDisplayGraph->Display($oP, $aResults, $sRelation, $oAppContext, array(), $sClassForAttachment, $iIdForAttachment, $sContextKey, array('this' => $oObj));
|
||||
DisplayNavigatorGroupTab($oP);
|
||||
}
|
||||
else
|
||||
{
|
||||
$oP->SetCurrentTab('UI:RelationshipGraph');
|
||||
$oDisplayGraph->Display($oP, $aResults, $sRelation, $oAppContext, array(), $sClassForAttachment, $iIdForAttachment, $sContextKey, array('this' => $oObj));
|
||||
DisplayNavigatorListTab($oP, $aResults, $sRelation, $sDirection, $oObj);
|
||||
DisplayNavigatorGroupTab($oP);
|
||||
}
|
||||
|
||||
$oP->SetCurrentTab('');
|
||||
break;
|
||||
|
||||
// Display the tabs
|
||||
if ($sFirstTab == 'list')
|
||||
{
|
||||
DisplayNavigatorListTab($oP, $aResults, $sRelation, $sDirection, $oObj);
|
||||
$oP->SetCurrentTab('UI:RelationshipGraph');
|
||||
$oDisplayGraph->Display($oP, $aResults, $sRelation, $oAppContext, array(), $sClassForAttachment, $iIdForAttachment, $sContextKey, array('this' => $oObj),$sLazyLoading);
|
||||
DisplayNavigatorGroupTab($oP);
|
||||
}
|
||||
else
|
||||
{
|
||||
$oP->SetCurrentTab('UI:RelationshipGraph');
|
||||
$oDisplayGraph->Display($oP, $aResults, $sRelation, $oAppContext, array(), $sClassForAttachment, $iIdForAttachment, $sContextKey, array('this' => $oObj),$sLazyLoading);
|
||||
DisplayNavigatorListTab($oP, $aResults, $sRelation, $sDirection, $oObj);
|
||||
DisplayNavigatorGroupTab($oP);
|
||||
}
|
||||
|
||||
$oP->SetCurrentTab('');
|
||||
break;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
case 'kill_lock':
|
||||
|
||||
Reference in New Issue
Block a user