From 11697a536c3dff7232201f86ac7a4576eb82b932 Mon Sep 17 00:00:00 2001
From: MegaChriz <megachriz@hotmail.com>
Date: Thu, 5 May 2016 11:03:06 +0200
Subject: [PATCH] Issue #2704825 by alan-ps, MegaChriz: Fixed import Feeds
 importer overwrote importer existing in code without "Replace existing"
 option set.

---
 feeds_ui/feeds_ui.admin.inc | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/feeds_ui/feeds_ui.admin.inc b/feeds_ui/feeds_ui.admin.inc
index cdfb43c1..f2cb7a05 100644
--- a/feeds_ui/feeds_ui.admin.inc
+++ b/feeds_ui/feeds_ui.admin.inc
@@ -1198,9 +1198,7 @@ function feeds_ui_importer_import_validate($form, &$form_state) {
   $exists = feeds_ui_importer_machine_name_exists($feeds_importer->id);
 
   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']) {
-- 
GitLab