Browse Source

Fix GETPOST for qty

Laurent Destailleur 4 years ago
parent
commit
788ef257a9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      htdocs/bom/bom_card.php

+ 1 - 1
htdocs/bom/bom_card.php

@@ -198,7 +198,7 @@ if (empty($reshook))
 		$error = 0;
 
 		// Set if we used free entry or predefined product
-		$qty = price2num(GETPOST('qty', 'int'));
+		$qty = price2num(GETPOST('qty', 'alpha'));
 		$qty_frozen = GETPOST('qty_frozen', 'int');
 		$disable_stock_change = GETPOST('disable_stock_change', 'int');
 		$efficiency = price2num(GETPOST('efficiency', 'int'));