Skip to content

Commit

Permalink
fix: remove tech group search option from service catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed May 11, 2022
1 parent 230b33e commit c473076
Showing 1 changed file with 28 additions and 25 deletions.
53 changes: 28 additions & 25 deletions inc/issue.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -690,34 +690,37 @@ public function rawSearchOptions() {
}
$tab[] = $newtab;

$tab[] = [
'id' => '15',
'table' => Group::getTable(),
'field' => 'name',
'name' => __('Technician group'),
'datatype' => 'dropdown',
'forcegroupby' => true,
'massiveaction' => false,
'nodisplay' => $hide_technician,
'nosearch' => $hide_technician,
'condition' => ['is_assign' => 1],
'joinparams' => [
'beforejoin' => [
'table' => Group_Ticket::getTable(),
'joinparams' => [
'condition' => "AND NEWTABLE.`type` = '2'", // Assign
'jointype' => 'child',
'beforejoin' => [
'table' => Ticket::getTable(),
'joinparams' => [
'jointype' => 'itemtype_item_revert',
'specific_itemtype' => Ticket::class,
],
if (!Session::isCron() // no filter for cron
&& Session::getCurrentInterface() != 'helpdesk') {
$tab[] = [
'id' => '15',
'table' => Group::getTable(),
'field' => 'name',
'name' => __('Technician group'),
'datatype' => 'dropdown',
'forcegroupby' => true,
'massiveaction' => false,
'nodisplay' => $hide_technician,
'nosearch' => $hide_technician,
'condition' => ['is_assign' => 1],
'joinparams' => [
'beforejoin' => [
'table' => Group_Ticket::getTable(),
'joinparams' => [
'condition' => "AND NEWTABLE.`type` = '2'", // Assign
'jointype' => 'child',
'beforejoin' => [
'table' => Ticket::getTable(),
'joinparams' => [
'jointype' => 'itemtype_item_revert',
'specific_itemtype' => Ticket::class,
],
]
]
]
]
]
];
];
}

if (Plugin::isPluginActive('advform')) {
$tab[] = PluginAdvformIssue::rawSearchOptionFormApproverGroup();
Expand Down

0 comments on commit c473076

Please sign in to comment.