mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 08:44:11 +02:00
CommandArguments: provide quickSearch
This commit is contained in:
parent
bf65f668a7
commit
cfabbf25e0
@ -35,7 +35,7 @@ class CommandController extends ObjectController
|
||||
$form->loadObject($id);
|
||||
}
|
||||
$form->handleRequest();
|
||||
$table = IcingaCommandArgumentTable::create($o);
|
||||
$this->content()->add([$form, $table]);
|
||||
$this->content()->add([$form]);
|
||||
IcingaCommandArgumentTable::create($o)->renderTo($this);
|
||||
}
|
||||
}
|
||||
|
@ -12,7 +12,8 @@ class IcingaCommandArgumentTable extends ZfQueryBasedTable
|
||||
protected $command;
|
||||
|
||||
protected $searchColumns = array(
|
||||
'command',
|
||||
'ca.argument_name',
|
||||
'ca.argument_value',
|
||||
);
|
||||
|
||||
public static function create(IcingaCommand $command)
|
||||
@ -67,6 +68,6 @@ class IcingaCommandArgumentTable extends ZfQueryBasedTable
|
||||
)->where(
|
||||
'ca.command_id = ?',
|
||||
$this->command->get('id')
|
||||
)->order('ca.sort_order')->order('ca.argument_name');
|
||||
)->order('ca.sort_order')->order('ca.argument_name')->limit(100);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user