mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
Db, DirectorObjectForm: support notifications
This commit is contained in:
parent
4fd4f0f7ce
commit
b6dc8e5faf
@ -557,6 +557,14 @@ class Db extends DbConnection
|
||||
return $this->enumIcingaObjects('command', $filters);
|
||||
}
|
||||
|
||||
public function enumNotificationCommands()
|
||||
{
|
||||
$filters = array(
|
||||
'methods_execute IN (?)' => array('PluginNotification'),
|
||||
);
|
||||
return $this->enumIcingaObjects('command', $filters);
|
||||
}
|
||||
|
||||
public function getZoneName($id)
|
||||
{
|
||||
$objects = $this->enumZones();
|
||||
|
@ -415,6 +415,7 @@ abstract class DirectorObjectForm extends QuickForm
|
||||
'address',
|
||||
'address6',
|
||||
'groups',
|
||||
'command_id', // Notification
|
||||
'email',
|
||||
'pager',
|
||||
'enable_notifications',
|
||||
|
Loading…
x
Reference in New Issue
Block a user