Index: /changelog
===================================================================
--- /changelog	(revision 7643)
+++ /changelog	(revision 7644)
@@ -323,3 +323,4 @@
 - Bugfix: Ausweisung von Anteilig bei Versand- und Zahlungskosten in Rechnung/Gutschrift
 - Bugfix: Produktoption "Bewertungspunkte" lÃ€sst sich mit Wert "Aus Kommentarbewertung" speichern
+- Bugfix: Auswahl der Zahl- und Versandarten im Produkt funktioniert zuverlÃ€ssig (PayPal Plus + Zahlvariante) / Task #708
 - Technisch: Ausgabe Overview wird zwischengespeichert, um Performance zu erhÃ¶hen
Index: /controller/wpsg_ProduktController.class.php
===================================================================
--- /controller/wpsg_ProduktController.class.php	(revision 7643)
+++ /controller/wpsg_ProduktController.class.php	(revision 7644)
@@ -945,11 +945,11 @@
 				// Erlaubte Zahlungsarten speichern
 				$data['allowedpayments'] = '';
-				if (wpsg_isSizedInt($_REQUEST['wpsg_paymentmethods_select'], '1'))
-				{
-
-					$arAllowedPayments = wpsg_trim($_REQUEST['wpsg_paymentmethods'], '0');
+				if (wpsg_isSizedInt($_REQUEST['wpsg_paymentmethods_select'], '1')) {
+
+					$arAllowedPayments = wpsg_trim($_REQUEST['wpsg_paymentmethods'], '0');										
+					
 					if (wpsg_isSizedArray($arAllowedPayments)) $data['allowedpayments'] = implode(',', $arAllowedPayments);
 					else $data['allowedpayments'] = '';
-
+					
 				}
 
Index: /views/produkt/addedit_payship.phtml
===================================================================
--- /views/produkt/addedit_payship.phtml	(revision 7643)
+++ /views/produkt/addedit_payship.phtml	(revision 7644)
@@ -10,5 +10,5 @@
 	<div class="wpsg_paymentmethods_select">
 		<?php foreach ($this->arPayment as $p) { if (!isset($p['deleted']) || $p['deleted'] != '1') { ?>
-			<?php echo wpsg_drawForm_Checkbox('wpsg_paymentmethods[]', $p['name'], in_array($p['id'], (array)$this->view['allowedPayment']), array('id' => 'wpsg_paymentmethods_'.$p['id'], 'value' => (string)$p['id'])); ?>
+			<?php echo wpsg_drawForm_Checkbox('wpsg_paymentmethods[]', $p['name'], in_array(strval($p['id']), (array)$this->view['allowedPayment']), array('id' => 'wpsg_paymentmethods_'.$p['id'], 'value' => (string)$p['id'])); ?>
 		<?php } } ?>
 	</div>
@@ -19,5 +19,5 @@
 	<?php } ?>
 	
-	<script type="text/javascript">/* <![CDATA[ */
+	<script>
 
 		jQuery('#wpsg_paymentmethods_select').bind('change', function() {
@@ -28,5 +28,6 @@
 		} ).change();
 	
-	/* ]]> */</script>
+	</script>
+	
 <?php echo wpsg_drawForm_AdminboxEnd(); ?>
 
@@ -35,5 +36,5 @@
 	<div class="wpsg_shippingmethods_select">
 		<?php foreach ($this->arShipping as $s) { if (!isset($s['deleted']) || $s['deleted'] != '1') { ?> 
-			<?php echo wpsg_drawForm_Checkbox('wpsg_shippingmethods[]', $s['name'], in_array($s['id'], (array)$this->view['allowedShipping']), array('id' => 'wpsg_shippingmethods_'.$s['id'], 'value' => $s['id'])); ?>
+			<?php echo wpsg_drawForm_Checkbox('wpsg_shippingmethods[]', $s['name'], in_array(strval($s['id']), (array)$this->view['allowedShipping']), array('id' => 'wpsg_shippingmethods_'.$s['id'], 'value' => $s['id'])); ?>
 		<?php } } ?>
 	</div>
@@ -44,5 +45,5 @@
 	<?php } ?>
 							
-	<script type="text/javascript">/* <![CDATA[ */
+	<script>
 	
 		jQuery('#wpsg_shippingmethods_select').bind('change', function() {
@@ -53,4 +54,5 @@
 		} ).change();
 							
-	/* ]]> */</script>
+	</script>
+	
 <?php echo wpsg_drawForm_AdminboxEnd(); ?>
