mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-20 07:42:17 +02:00
N°2313 - Markup extensibility: Update usages of admin. console tabs to have codes and titles
This commit is contained in:
@@ -1084,17 +1084,17 @@
|
||||
if (MetaModel::IsValidClass('KnownError'))
|
||||
{
|
||||
//Search for known errors
|
||||
$oPage->SetCurrentTab(Dict::S('Class:UserRequest:KnownErrorList'));
|
||||
$oPage->SetCurrentTab('Class:UserRequest:KnownErrorList');
|
||||
$iTicketID = $this->GetKey();;
|
||||
$oKnownErrorSet = new CMDBObjectSet(DBObjectSearch::FromOQL("SELECT KnownError AS ke JOIN lnkErrorToFunctionalCI AS l1 ON l1.error_id=ke.id JOIN FunctionalCI AS ci ON l1.functionalci_id=ci.id JOIN lnkFunctionalCIToTicket AS l2 ON l2.functionalci_id=ci.id WHERE l2.ticket_id=$iTicketID"));
|
||||
$iNumberKE=$oKnownErrorSet->count();
|
||||
if ($iNumberKE > 0)
|
||||
{
|
||||
$oPage->SetCurrentTab(Dict::S('Class:UserRequest:KnownErrorList')." ($iNumberKE)");
|
||||
$oPage->SetCurrentTab('Class:UserRequest:KnownErrorList', Dict::S('Class:UserRequest:KnownErrorList')." ($iNumberKE)");
|
||||
}
|
||||
else
|
||||
{
|
||||
$oPage->SetCurrentTab(Dict::S('Class:UserRequest:KnownErrorList'));
|
||||
$oPage->SetCurrentTab('Class:UserRequest:KnownErrorList');
|
||||
}
|
||||
self::DisplaySet($oPage, $oKnownErrorSet, array ('menu' => false));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user