Skip to content

Commit c0bffe1

Browse files
committed
Fix display
1 parent 4d66d9a commit c0bffe1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/Ticket.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,8 @@ public static function checkExistingCategory($params)
390390
*/
391391
public function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
392392
{
393-
if ($item->getType() == \Ticket::class) {
393+
if ($item->getType() == \Ticket::class
394+
&& $_SESSION['glpiactiveprofile']['interface'] == 'central') {
394395
return self::createTabEntry(__("Transfer Ticket Entity", "transferticketentity"));
395396
}
396397
return '';
@@ -407,7 +408,8 @@ public function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
407408
*/
408409
public static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
409410
{
410-
if ($item->getType() == \Ticket::class) {
411+
if ($item->getType() == \Ticket::class
412+
&& $_SESSION['glpiactiveprofile']['interface'] == 'central') {
411413
$ticket = new self();
412414
$ticket->showFormMcv($item);
413415
}

0 commit comments

Comments
 (0)