mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
Fix error on Tag Admin screen when no TagSet attribute is defined
This commit is contained in:
@@ -105,7 +105,7 @@ try
|
||||
$oP->P("<b>".Dict::Format('UI:TagSetFieldData:Error', $e->getHtmlDesc())."</b>");
|
||||
}
|
||||
|
||||
if ($oFilter != null)
|
||||
if (!empty($oFilter))
|
||||
{
|
||||
$oSet = new CMDBObjectSet($oFilter);
|
||||
$oBlock = new DisplayBlock($oFilter, 'search', false);
|
||||
@@ -125,6 +125,12 @@ try
|
||||
$sFilter = $oFilter->ToOQL();
|
||||
$oP->add("\n<!-- $sFilter -->\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
$oP->add("<p>");
|
||||
$oP->add(Dict::S('UI:TagAdminMenu:NoTags'));
|
||||
$oP->add("</p>");
|
||||
}
|
||||
$oP->add("</div>\n");
|
||||
|
||||
$oP->output();
|
||||
|
||||
Reference in New Issue
Block a user