Index: /changelog
===================================================================
--- /changelog	(revision 7596)
+++ /changelog	(revision 7598)
@@ -289,4 +289,5 @@
 - Bugfix: Textvereinfachung bei fleixblen Preis Gutscheinprodukt
 - Bugfix: Doppelter Downloadlink bei Gutscheinprodukt raus
+- Bugfix: Speichern von Feldern im Rechnungsmodul wieder mÃ¶glich
 - Feature: URL Benachrichtigung sendet einen User Agent und Referer mit (Wordfence Regel)
 
Index: /controller/wpsg_ShopController.class.php
===================================================================
--- /controller/wpsg_ShopController.class.php	(revision 7596)
+++ /controller/wpsg_ShopController.class.php	(revision 7598)
@@ -2179,6 +2179,6 @@
 			{
 				
-			    if (isset($_REQUEST['wpsg']['produkt_id']) && ($_REQUEST['wpsg']['produkt_id'] == $produkt['product_id']))
-				if (isset($_REQUEST['wpsg']['product_key'])) $produkt['id']	= $_REQUEST['wpsg']['product_key'];
+				if (isset($_REQUEST['wpsg']['produkt_id']) && ($_REQUEST['wpsg']['produkt_id'] == $produkt['product_id'])) { $produkt['product_id'] = $_REQUEST['wpsg']['produkt_id']; }
+				if (isset($_REQUEST['wpsg']['product_key'])) { $produkt['product_key'] = $_REQUEST['wpsg']['product_key']; }
 			    
 			}
Index: /mods/wpsg_mod_klarna.class.php
===================================================================
--- /mods/wpsg_mod_klarna.class.php	(revision 7596)
+++ /mods/wpsg_mod_klarna.class.php	(revision 7598)
@@ -275,3 +275,2 @@
 	} // class wpsg_mod_klarna extends wpsg_mod_basic
 
-?>
Index: /mods/wpsg_mod_rechnungen.class.php
===================================================================
--- /mods/wpsg_mod_rechnungen.class.php	(revision 7596)
+++ /mods/wpsg_mod_rechnungen.class.php	(revision 7598)
@@ -129,5 +129,8 @@
 				if (!is_array($foot_text)) $foot_text = array();
 				
-				if (wpsg_checkInput($_REQUEST['value'], WPSG_SANITIZE_TEXTFIELD)) {
+				if ($_REQUEST['field'] === '1') $check = wpsg_checkInput($_REQUEST['value'], WPSG_SANITIZE_TEXTAREA);
+				else $check = wpsg_checkInput($_REQUEST['value'], WPSG_SANITIZE_TEXTFIELD);
+				
+				if ($check) {
 					
 					$foot_text[$_REQUEST['field_id']][$_REQUEST['field']] = $_REQUEST['value'];
@@ -253,5 +256,5 @@
 			}
 			
-			$bCheckTextField = false;
+			$bCheckTextField = true;
 
 			foreach ($_REQUEST['text'] as $k => $v) {
@@ -279,5 +282,5 @@
 					
 					$this->shop->addBackendError(__('Bitte ÃŒberprÃŒfen Sie die Textfelder.', 'wpsg'));
-					$bCheckTextField = true;
+					$bCheckTextField = false;
 					
 				}
