IcingaUserTable: add more search columns

This commit is contained in:
Thomas Gelf 2016-03-20 13:13:25 +01:00
parent d2de1f2eab
commit 7af25b2b98
1 changed files with 3 additions and 2 deletions

View File

@ -8,6 +8,7 @@ class IcingaUserTable extends IcingaObjectTable
{ {
protected $searchColumns = array( protected $searchColumns = array(
'user', 'user',
'display_name'
); );
public function getColumns() public function getColumns()
@ -16,9 +17,9 @@ class IcingaUserTable extends IcingaObjectTable
'id' => 'u.id', 'id' => 'u.id',
'object_type' => 'u.object_type', 'object_type' => 'u.object_type',
'user' => 'u.object_name', 'user' => 'u.object_name',
// 'display_name' => 'u.display_name', 'display_name' => 'u.display_name',
'email' => 'u.email', 'email' => 'u.email',
// 'pager' => 'u.pager', 'pager' => 'u.pager',
// 'enable_notifications' => 'u.enable_notifications', // 'enable_notifications' => 'u.enable_notifications',
// 'period' => '' // 'period' => ''
'zone' => 'z.object_name', 'zone' => 'z.object_name',