diff --git a/application/forms/SyncPropertyForm.php b/application/forms/SyncPropertyForm.php index cf08b197..cca64b85 100644 --- a/application/forms/SyncPropertyForm.php +++ b/application/forms/SyncPropertyForm.php @@ -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?