--- leech.module	2007-01-23 12:52:21.000000000 +0100
+++ developmentseed/leech-cvs/contributions/modules/leech/leech.module	2007-01-23 12:50:00.000000000 +0100
@@ -1208,7 +1208,7 @@
     _leech_news_save_items($node);
   }
   
-  if (isset($node->leech_news)){
+  if (isset($node->leech_news)) {
     if (variable_get('leech_news_pass_on_taxonomy', 0)) {
       _leech_news_pass_on_taxonomy($node);
     }
@@ -1224,7 +1224,7 @@
   // Create items after we know feed was validated ok (submit is called after validate)
   if ($node->leech->_refresh_running && isset($node->leech_opml) && isset($node->leech->connection->result->dataXML)) {
     leech_opml_save_items($node);
-  } 
+  }
 }
 
 
@@ -2471,7 +2471,7 @@
   
   if (!isset($node->nid)) {
     return;
-  } 
+  }
 
   timer_start("ogpass");
   
@@ -2507,6 +2507,11 @@
   if ($updated > 0) {
     drupal_set_message("Group settings of ".$updated." child feed item(s) updated in ".timer_read("ogpass")." ms", "status");
   }
+  // Transform the $node->og_groups according to the og_submit_group taste
+  foreach($node->og_groups as $gid) {
+    $transformed_groups[$gid] = $gid;
+  }
+  $node->og_groups = $transformed_groups;
   timer_stop("ogpass");
 }
 
