CloneImportSourceForm: use the correct field

This commit is contained in:
Thomas Gelf 2018-06-14 13:06:00 +02:00
parent 33ff71ce94
commit ee48f28302

View File

@ -53,7 +53,7 @@ class CloneImportSourceForm extends Form
$export->source_name = $newName;
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->store();