Skip to content
Snippets Groups Projects
Commit 11697a53 authored by MegaChriz's avatar MegaChriz
Browse files

Issue #2704825 by alan-ps, MegaChriz: Fixed import Feeds importer overwrote...

Issue #2704825 by alan-ps, MegaChriz: Fixed import Feeds importer overwrote importer existing in code without "Replace existing" option set.
parent ed4ed9f8
No related branches found
No related tags found
No related merge requests found
...@@ -1198,9 +1198,7 @@ function feeds_ui_importer_import_validate($form, &$form_state) { ...@@ -1198,9 +1198,7 @@ function feeds_ui_importer_import_validate($form, &$form_state) {
$exists = feeds_ui_importer_machine_name_exists($feeds_importer->id); $exists = feeds_ui_importer_machine_name_exists($feeds_importer->id);
if ($exists && !$form_state['values']['id_override']) { if ($exists && !$form_state['values']['id_override']) {
if (feeds_importer($feeds_importer->id)->export_type != EXPORT_IN_CODE) { return form_error($form['id'], t('Feeds importer already exists with that id.'));
return form_error($form['id'], t('Feeds importer already exists with that id.'));
}
} }
if (!$form_state['values']['bypass_validation']) { if (!$form_state['values']['bypass_validation']) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment