mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
Model: Define missing search columns for some models
This commit is contained in:
parent
febdae2552
commit
2a3aab2dc6
7 changed files with 35 additions and 0 deletions
|
|
@ -65,6 +65,11 @@ class Comment extends Model
|
|||
];
|
||||
}
|
||||
|
||||
public function getSearchColumns()
|
||||
{
|
||||
return ['text'];
|
||||
}
|
||||
|
||||
public function getDefaultSort()
|
||||
{
|
||||
return 'comment.entry_time desc';
|
||||
|
|
|
|||
|
|
@ -76,6 +76,11 @@ class Downtime extends Model
|
|||
];
|
||||
}
|
||||
|
||||
public function getSearchColumns()
|
||||
{
|
||||
return ['comment'];
|
||||
}
|
||||
|
||||
public function getDefaultSort()
|
||||
{
|
||||
return ['downtime.is_in_effect', 'downtime.start_time desc'];
|
||||
|
|
|
|||
|
|
@ -47,6 +47,11 @@ class Hostgroup extends Model
|
|||
];
|
||||
}
|
||||
|
||||
public function getSearchColumns()
|
||||
{
|
||||
return ['name_ci'];
|
||||
}
|
||||
|
||||
public function getDefaultSort()
|
||||
{
|
||||
return 'display_name';
|
||||
|
|
|
|||
|
|
@ -66,6 +66,11 @@ class NotificationHistory extends Model
|
|||
];
|
||||
}
|
||||
|
||||
public function getSearchColumns()
|
||||
{
|
||||
return ['text'];
|
||||
}
|
||||
|
||||
public function getDefaultSort()
|
||||
{
|
||||
return 'notification_history.send_time desc';
|
||||
|
|
|
|||
|
|
@ -47,6 +47,11 @@ class Servicegroup extends Model
|
|||
];
|
||||
}
|
||||
|
||||
public function getSearchColumns()
|
||||
{
|
||||
return ['name_ci'];
|
||||
}
|
||||
|
||||
public function getDefaultSort()
|
||||
{
|
||||
return 'display_name';
|
||||
|
|
|
|||
|
|
@ -60,6 +60,11 @@ class User extends Model
|
|||
];
|
||||
}
|
||||
|
||||
public function getSearchColumns()
|
||||
{
|
||||
return ['name_ci'];
|
||||
}
|
||||
|
||||
public function getDefaultSort()
|
||||
{
|
||||
return 'user.display_name';
|
||||
|
|
|
|||
|
|
@ -47,6 +47,11 @@ class Usergroup extends Model
|
|||
];
|
||||
}
|
||||
|
||||
public function getSearchColumns()
|
||||
{
|
||||
return ['name_ci'];
|
||||
}
|
||||
|
||||
public function getDefaultSort()
|
||||
{
|
||||
return 'usergroup.display_name';
|
||||
|
|
|
|||
Loading…
Reference in a new issue