mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 16:24:05 +02:00
CloneSyncRuleForm: prepare for multi-db use
This commit is contained in:
parent
ee48f28302
commit
1ca41c5b10
@ -52,7 +52,7 @@ class CloneSyncRuleForm extends Form
|
||||
$export = $this->rule->export();
|
||||
$newName = $this->getValue('rule_name');
|
||||
$export->rule_name = $newName;
|
||||
if (SyncRule::existsWithName($newName, $this->rule->getConnection())) {
|
||||
if (SyncRule::existsWithName($newName, $this->getTargetDb())) {
|
||||
$this->getElement('rule_name')->addMessage('Name already exists');
|
||||
}
|
||||
$this->newRule = SyncRule::import($export, $this->getTargetDb());
|
||||
|
Loading…
x
Reference in New Issue
Block a user