Skip to content

Commit

Permalink
Fix search options
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Sep 24, 2019
1 parent 1ff20da commit b32c8a7
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 20 deletions.
2 changes: 1 addition & 1 deletion inc/certificate.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ function rawSearchOptions() {
];

$tab[] = [
'id' => '50',
'id' => '61',
'table' => $this->getTable(),
'field' => 'template_name',
'name' => __('Template name'),
Expand Down
2 changes: 1 addition & 1 deletion inc/computer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ function rawSearchOptions() {
];

$tab[] = [
'id' => '50',
'id' => '65',
'table' => $this->getTable(),
'field' => 'template_name',
'name' => __('Template name'),
Expand Down
10 changes: 0 additions & 10 deletions inc/ipnetwork.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,6 @@ function rawSearchOptions() {
'datatype' => 'string'
];

$tab[] = [
'id' => '13',
'table' => $this->getTable(),
'field' => 'network',
'name' => self::getTypeName(1),
'massiveaction' => false,
'datatype' => 'string',
'autocomplete' => true,
];

$tab[] = [
'id' => '17',
'table' => $this->getTable(),
Expand Down
2 changes: 1 addition & 1 deletion inc/monitor.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ function rawSearchOptions() {
];

$tab[] = [
'id' => '50',
'id' => '61',
'table' => $this->getTable(),
'field' => 'template_name',
'name' => __('Template name'),
Expand Down
2 changes: 1 addition & 1 deletion inc/networkequipment.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ function rawSearchOptions() {
];

$tab[] = [
'id' => '50',
'id' => '65',
'table' => $this->getTable(),
'field' => 'template_name',
'name' => __('Template name'),
Expand Down
2 changes: 1 addition & 1 deletion inc/peripheral.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ function rawSearchOptions() {
];

$tab[] = [
'id' => '50',
'id' => '61',
'table' => $this->getTable(),
'field' => 'template_name',
'name' => __('Template name'),
Expand Down
2 changes: 1 addition & 1 deletion inc/phone.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ function rawSearchOptions() {
];

$tab[] = [
'id' => '50',
'id' => '61',
'table' => $this->getTable(),
'field' => 'template_name',
'name' => __('Template name'),
Expand Down
2 changes: 1 addition & 1 deletion inc/printer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ function rawSearchOptions() {
];

$tab[] = [
'id' => '50',
'id' => '61',
'table' => $this->getTable(),
'field' => 'template_name',
'name' => __('Template name'),
Expand Down
2 changes: 1 addition & 1 deletion tests/functionnal/AuthLdap.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ public function testDefineTabs() {
public function testGetSearchOptionsNew() {
$ldap = new \AuthLDAP();
$options = $ldap->rawSearchOptions();
$this->array($options)->hasSize(32);
$this->array($options)->hasSize(33);
}

public function testGetSyncFields() {
Expand Down
4 changes: 2 additions & 2 deletions tests/functionnal/Software.php
Original file line number Diff line number Diff line change
Expand Up @@ -413,10 +413,10 @@ public function testGetSpecificMassiveActions() {
public function testGetSearchOptionsNew() {
$software = new \Software();
$result = $software->rawSearchOptions();
$this->array($result)->hasSize(39);
$this->array($result)->hasSize(40);

$this->login();
$result = $software->rawSearchOptions();
$this->array($result)->hasSize(48);
$this->array($result)->hasSize(49);
}
}

0 comments on commit b32c8a7

Please sign in to comment.