SyncPropertyForm: allow to fill "all" vars

This commit is contained in:
Thomas Gelf 2015-12-11 10:39:29 +01:00
parent 9bbdb6f983
commit 23655240cb
1 changed files with 2 additions and 1 deletions

View File

@ -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)');