SyncPropertyForm: allow to fill "all" vars
This commit is contained in:
parent
9bbdb6f983
commit
23655240cb
|
@ -142,7 +142,7 @@ class SyncPropertyForm extends DirectorObjectForm
|
||||||
));
|
));
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ($isCustomvar) {
|
if ($isCustomvar || $destination === 'vars') {
|
||||||
$this->addElement('select', 'merge_policy', array(
|
$this->addElement('select', 'merge_policy', array(
|
||||||
'label' => $this->translate('Merge Policy'),
|
'label' => $this->translate('Merge Policy'),
|
||||||
'description' => $this->translate('Whether you want to merge or replace the destination field. Makes no difference for strings'),
|
'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 instanceof IcingaObject) {
|
||||||
if ($dummy->supportsCustomvars()) {
|
if ($dummy->supportsCustomvars()) {
|
||||||
$special['vars.*'] = $this->translate('Custom variable (vars.)');
|
$special['vars.*'] = $this->translate('Custom variable (vars.)');
|
||||||
|
$special['vars'] = $this->translate('All custom variables (vars)');
|
||||||
}
|
}
|
||||||
if ($dummy->supportsImports()) {
|
if ($dummy->supportsImports()) {
|
||||||
$special['import'] = $this->translate('Inheritance (import)');
|
$special['import'] = $this->translate('Inheritance (import)');
|
||||||
|
|
Loading…
Reference in New Issue