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

Commit

Permalink
fix(policy): add missing search options
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Apr 20, 2018
1 parent a151acc commit d4fa44d
Showing 1 changed file with 31 additions and 4 deletions.
35 changes: 31 additions & 4 deletions inc/policy.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public function getSearchOptionsNew() {
'id' => '3',
'table' => 'glpi_plugin_flyvemdm_policycategories',
'field' => 'completename',
'name' => __('Policy category'),
'name' => __('Policy category', 'flyvemdm'),
'datatype' => 'dropdown',
'massiveaction' => false,
];
Expand All @@ -128,7 +128,7 @@ public function getSearchOptionsNew() {
'id' => '5',
'table' => $this->getTable(),
'field' => 'type_data',
'name' => __('Enumeration data'),
'name' => __('Enumeration data', 'flyvemdm'),
'datatype' => 'string',
'massiveaction' => false,
];
Expand All @@ -146,7 +146,7 @@ public function getSearchOptionsNew() {
'id' => '7',
'table' => $this->getTable(),
'field' => 'default_value',
'name' => __('Default value'),
'name' => __('Default value', 'flyvemdm'),
'datatype' => 'string',
'massiveaction' => false,
];
Expand All @@ -155,7 +155,34 @@ public function getSearchOptionsNew() {
'id' => '8',
'table' => $this->getTable(),
'field' => 'recommended_value',
'name' => __('Recommended value'),
'name' => __('Recommended value', 'flyvemdm'),
'datatype' => 'string',
'massiveaction' => false,
];

$tab[] = [
'id' => '9',
'table' => $this->getTable(),
'field' => 'is_android_policy',
'name' => __('For Android', 'flyvemdm'),
'datatype' => 'string',
'massiveaction' => false,
];

$tab[] = [
'id' => '10',
'table' => $this->getTable(),
'field' => 'is_android_system',
'name' => __('Requires system permission', 'flyvemdm'),
'datatype' => 'string',
'massiveaction' => false,
];

$tab[] = [
'id' => '11',
'table' => $this->getTable(),
'field' => 'is_apple_policy',
'name' => __('For iOS', 'flyvemdm'),
'datatype' => 'string',
'massiveaction' => false,
];
Expand Down

0 comments on commit d4fa44d

Please sign in to comment.