From eab1ed54631d1e7ccf39402b4a5f759180b0de0b Mon Sep 17 00:00:00 2001
From: Alex Barth <alex_b@53995.no-reply.drupal.org>
Date: Sun, 18 Jul 2010 19:22:46 +0000
Subject: [PATCH] Avoid busy setting changes.

---
 plugins/FeedsUserProcessor.inc | 2 +-
 tests/feeds.test               | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/plugins/FeedsUserProcessor.inc b/plugins/FeedsUserProcessor.inc
index e526ca8c..c0b0605d 100644
--- a/plugins/FeedsUserProcessor.inc
+++ b/plugins/FeedsUserProcessor.inc
@@ -100,7 +100,7 @@ class FeedsUserProcessor extends FeedsProcessor {
     // Prepare term object.
     $target_account = new stdClass();
     $target_account->uid = 0;
-    $target_account->roles = $this->config['roles'];
+    $target_account->roles = array_filter($this->config['roles']);
     $target_account->status = $this->config['status'];
 
     // Have parent class do the iterating.
diff --git a/tests/feeds.test b/tests/feeds.test
index 7ebe943f..ca567243 100644
--- a/tests/feeds.test
+++ b/tests/feeds.test
@@ -612,10 +612,9 @@ class FeedsCSVtoUsersTest extends FeedsWebTestCase {
     );
     $this->addMappings('user_import', $mappings);
 
-    // Change some of the basic configuration.
+    // Use standalone form.
     $edit = array(
       'content_type' => '',
-      'import_period' => FEEDS_SCHEDULE_NEVER,
     );
     $this->drupalPost('admin/build/feeds/edit/user_import/settings', $edit, 'Save');
 
-- 
GitLab