mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-13 13:08:10 +02:00
CloneImportSourceForm: use the correct field
This commit is contained in:
parent
33ff71ce94
commit
ee48f28302
@ -53,7 +53,7 @@ class CloneImportSourceForm extends Form
|
|||||||
$export->source_name = $newName;
|
$export->source_name = $newName;
|
||||||
|
|
||||||
if (ImportSource::existsWithName($newName, $this->source->getConnection())) {
|
if (ImportSource::existsWithName($newName, $this->source->getConnection())) {
|
||||||
$this->getElement('import_name')->addMessage('Name already exists');
|
$this->getElement('source_name')->addMessage('Name already exists');
|
||||||
}
|
}
|
||||||
$this->newSource = ImportSource::import($export, $this->getTargetDb());
|
$this->newSource = ImportSource::import($export, $this->getTargetDb());
|
||||||
$this->newSource->store();
|
$this->newSource->store();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user