mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
SyncPropertyForm: provide imports based on type
This commit is contained in:
parent
ef4eecae6f
commit
f4e9ff14cf
@ -73,7 +73,8 @@ class SyncPropertyForm extends DirectorObjectForm
|
||||
}
|
||||
|
||||
if ($destination === 'import') {
|
||||
$templates = $this->db->enumHostTemplates(); // ERR. type!
|
||||
$funcTemplates = 'enum' . ucfirst($this->rule->object_type) . 'Templates';
|
||||
$templates = $this->db->$funcTemplates();
|
||||
$templates = array_combine($templates, $templates);
|
||||
$this->addElement('select', 'source_expression', array(
|
||||
'label' => $this->translate('Template'), // Objecttype?
|
||||
|
Loading…
x
Reference in New Issue
Block a user