Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
fix(agent): update search options
Browse files Browse the repository at this point in the history
fix #179
  • Loading branch information
btry authored and DIOHz0r committed Jan 11, 2018
1 parent 7c8e9df commit 9096104
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions inc/agent.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -795,25 +795,6 @@ public function getSearchOptionsNew() {
'massiveaction' => false
];

$tab[] = [
'id' => '9',
'table' => 'glpi_users',
'field' => 'realname',
'name' => __('User'),
'forcegroupby' => false,
'massiveaction' => false,
'datatype' => 'dropdown',
'joinparams' => [
'beforejoin' => [
'table' => 'glpi_computers',
'joinparams' => [
'jointype' => '',
'condition' => ''
]
]
]
];

$tab[] = [
'id' => '10',
'table' => $this->getTable(),
Expand Down Expand Up @@ -859,6 +840,24 @@ public function getSearchOptionsNew() {
'massiveaction' => false
];

$tab[] = [
'id' => '12',
'table' => $this->getTable(),
'field' => 'mdm_type',
'name' => __('Type of MDM'),
'datatype' => 'boolean',
'massiveaction' => false
];

$tab[] = [
'id' => '13',
'table' => $this->getTable(),
'field' => 'has_system_permission',
'name' => __('Has system permission'),
'datatype' => 'boolean',
'massiveaction' => false
];

return $tab;
}

Expand Down

0 comments on commit 9096104

Please sign in to comment.