Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ticket tab for service levels #16989

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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);
cedric-anne marked this conversation as resolved.
Show resolved Hide resolved

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