CommandArguments: provide quickSearch

This commit is contained in:
Thomas Gelf 2017-07-21 08:23:52 +02:00
parent bf65f668a7
commit cfabbf25e0
2 changed files with 5 additions and 4 deletions

View File

@ -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);
}
}

View File

@ -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);
}
}