Index: /changelog
===================================================================
--- /changelog	(revision 7702)
+++ /changelog	(revision 7703)
@@ -354,2 +354,3 @@
 - Feature: Filter wpsg_sendMail zur Anpassung von Mails hinzugefÃŒgt
 - Feature: Suche nach ID: in der Produktverwaltung im Suchstring
+- Bugfix: Die Funktion "Zuordnung Produkt zu Artikel", erzwingt nicht mehr die neu generierung des Posts, nur noch bei Bedarf
Index: /mods/wpsg_mod_produktartikel.class.php
===================================================================
--- /mods/wpsg_mod_produktartikel.class.php	(revision 7702)
+++ /mods/wpsg_mod_produktartikel.class.php	(revision 7703)
@@ -124,15 +124,15 @@
     
                 $arProductIDs = $this->db->fetchAssocField("SELECT `id` FROM `".WPSG_TBL_PRODUCTS."` ", "id");
-    
+
                 if (wpsg_isSizedArray($arProductIDs)) {
     
                     // Ich lÃ¶sche alle Posts zu denen es die Produkte nicht mehr gibt
                     $this->db->Query("
-                            DELETE FROM
-                                `".$this->shop->prefix."posts`
-                            WHERE
-                                `wpsg_produkt_id` NOT IN (".wpsg_q(implode(',', $arProductIDs)).") AND
-                                `wpsg_produkt_id` > 0
-                        ");
+                        DELETE FROM
+                            `".$this->shop->prefix."posts`
+                        WHERE
+                            `wpsg_produkt_id` NOT IN (".wpsg_q(implode(',', $arProductIDs)).") AND
+                            `wpsg_produkt_id` > 0
+                    ");
     
                     $this->shop->update_option('wpsg_mod_produktartikel_rebuild', array(
@@ -699,5 +699,5 @@
             if (isset($_REQUEST['wpsg_mod_produktartikel'])) $comment = wpsg_sinput("key", $_REQUEST['wpsg_mod_produktartikel']['kommentare']); else $comment = false;
     
-            $this->getPostIdFromProductId($product_id, $_REQUEST['wpsg_mod_produktartikel']['path'], $comment, wpsg_sinput("key", $_REQUEST['wpsg_produktartikel_menuorder']), true, wpsg_sinput("key", @$_REQUEST['disabled']));
+            $this->getPostIdFromProductId($product_id, $_REQUEST['wpsg_mod_produktartikel']['path'], $comment, wpsg_sinput("key", $_REQUEST['wpsg_produktartikel_menuorder']), false, wpsg_sinput("key", @$_REQUEST['disabled']));
     
         } // public function produkt_save($produkt_id)
