mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 08:14:04 +02:00
CloneSyncRuleForm: show a meaningful message
This commit is contained in:
parent
6325798fca
commit
1bc77ad7c6
@ -53,7 +53,7 @@ class CloneSyncRuleForm extends Form
|
||||
$newName = $this->getValue('rule_name');
|
||||
$export->rule_name = $newName;
|
||||
if (SyncRule::existsWithName($newName, $this->rule->getConnection())) {
|
||||
$this->getElement('rule_name')->addMessage('Do no');
|
||||
$this->getElement('rule_name')->addMessage('Name already exists');
|
||||
}
|
||||
$this->newRule = SyncRule::import($export, $this->getTargetDb());
|
||||
$this->newRule->store();
|
||||
|
Loading…
x
Reference in New Issue
Block a user