From 23655240cba49a6022d3adcbd481a8c18653c448 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 11 Dec 2015 10:39:29 +0100 Subject: [PATCH] SyncPropertyForm: allow to fill "all" vars --- application/forms/SyncPropertyForm.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/forms/SyncPropertyForm.php b/application/forms/SyncPropertyForm.php index c18c5b05..df0ddbd4 100644 --- a/application/forms/SyncPropertyForm.php +++ b/application/forms/SyncPropertyForm.php @@ -142,7 +142,7 @@ class SyncPropertyForm extends DirectorObjectForm )); */ - if ($isCustomvar) { + if ($isCustomvar || $destination === 'vars') { $this->addElement('select', 'merge_policy', array( 'label' => $this->translate('Merge Policy'), 'description' => $this->translate('Whether you want to merge or replace the destination field. Makes no difference for strings'), @@ -230,6 +230,7 @@ class SyncPropertyForm extends DirectorObjectForm if ($dummy instanceof IcingaObject) { if ($dummy->supportsCustomvars()) { $special['vars.*'] = $this->translate('Custom variable (vars.)'); + $special['vars'] = $this->translate('All custom variables (vars)'); } if ($dummy->supportsImports()) { $special['import'] = $this->translate('Inheritance (import)');