Skip to content

Commit

Permalink
[0.90]fix force tab if ticket timeline - see #455
Browse files Browse the repository at this point in the history
  • Loading branch information
yllen committed Feb 12, 2016
1 parent 60d3799 commit 68cdf80
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions inc/notificationtargetcommonitilobject.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
-------------------------------------------------------------------------
LICENSE
Expand Down Expand Up @@ -656,10 +656,14 @@ function getDatasForObject(CommonDBTM $item, array $options, $simple=false) {
= $this->formatURL($options['additionnaloption']['usertype'],
$objettype."_".$item->getField("id"));

$tab = '$2';
if ($_SESSION['glpiticket_timeline'] == 1) {
$tab = '$1';
}
$datas["##$objettype.urlapprove##"]
= $this->formatURL($options['additionnaloption']['usertype'],
$objettype."_".$item->getField("id")."_".
$item->getType().'$2');
$item->getType().$tab);


$entity = new Entity();
Expand Down

0 comments on commit 68cdf80

Please sign in to comment.