Skip to content

Commit

Permalink
fix ticket tab for service levels
Browse files Browse the repository at this point in the history
  • Loading branch information
cconard96 authored and cedric-anne committed May 6, 2024
1 parent c35280f commit 84751a5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/CommonItilObject_Item.php
Expand Up @@ -585,8 +585,6 @@ public static function showListForItem(CommonDBTM $item, $withtemplate = 0, $opt
}
$restrict = $params['restrict'];

$restrict[static::getTable() . ".items_id"] = $item->getID();
$restrict[static::getTable() . ".itemtype"] = $item->getType();
$params['criteria'][0]['field'] = 12;
$params['criteria'][0]['searchtype'] = 'equals';
$params['criteria'][0]['value'] = 'all';
Expand Down
2 changes: 1 addition & 1 deletion src/LevelAgreement.php
Expand Up @@ -110,7 +110,7 @@ public function defineTabs($options = [])
$this->addDefaultFormTab($ong);
$this->addStandardTab(static::$levelclass, $ong, $options);
$this->addStandardTab('Rule', $ong, $options);
$this->addStandardTab('Ticket', $ong, $options);
$this->addStandardTab('Item_Ticket', $ong, $options);

return $ong;
}
Expand Down
2 changes: 1 addition & 1 deletion templates/components/itilobject/service_levels.html.twig
Expand Up @@ -92,7 +92,7 @@
{% endif %}

{% if la_displayed %}
<span class="level_name badge itil-badge bg-secondary ms-1 flex-column flex-sm-row">
<span class="level_name badge itil-badge bg-secondary text-secondary-fg ms-1 flex-column flex-sm-row">
<span class="d-flex align-items-center">
<i class="fas fa-stopwatch slt me-1"></i>
<span class="text-truncate"
Expand Down

0 comments on commit 84751a5

Please sign in to comment.