SuggestController: don't suggest command templates
...where commands are required fixes #1414
This commit is contained in:
parent
cd2de241dd
commit
69d3675b34
|
@ -192,7 +192,11 @@ class SuggestController extends ActionController
|
|||
protected function suggestCheckcommandnames()
|
||||
{
|
||||
$db = $this->db()->getDbAdapter();
|
||||
$query = $db->select()->from('icinga_command', 'object_name')->order('object_name');
|
||||
$query = $db->select()
|
||||
->from('icinga_command', 'object_name')
|
||||
->where('object_type != ?', 'template')
|
||||
->order('object_name');
|
||||
|
||||
return $db->fetchCol($query);
|
||||
}
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@ before switching to a new version.
|
|||
* FEATURE: Users equipped with related permissions can toggle "Show SQL" in the GUI
|
||||
* FEATURE: A Service Set can now be assigned to multiple hosts at once #1281
|
||||
* FEATURE: Commands can now be filtered by usage (#1480)
|
||||
* FIX: Don't suggest Command templates where Commands are required (#1414)
|
||||
|
||||
### CLI
|
||||
* FEATURE: Director Health Check Plugin (#1278)
|
||||
|
|
Loading…
Reference in New Issue