]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
fix part 002
authorAlexander Smirnov <fredeom@mail.ru>
Mon, 3 Jun 2024 11:41:37 +0000 (14:41 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Mon, 3 Jun 2024 11:41:37 +0000 (14:41 +0300)
erp24/modul/products/ajax_product_provider_add.php

index 01a69c1af109f948370d008af880c4e2a5e078ee..502b3a5db8830273fccb5342debab91aac44cf02 100644 (file)
@@ -7,12 +7,12 @@ include_once(dirname(__DIR__, 2) . "/inc/base_new.php");
 if(!empty($_REQUEST["id"])) {
   $id=htmlentities($_REQUEST["id"]);
   $options=htmlentities($_REQUEST["options"]);
-  $provider_id=htmlentities($_REQUEST["provider_id"]);
+  $provider_id=intval($_REQUEST["provider_id"]);
   $expiration_days=intval($_REQUEST["expiration_days"]);
   $min_lot=intval($_REQUEST["min_lot"]);
   $colors=htmlentities($_REQUEST["colors"]);
   $min_order=intval($_REQUEST["min_order"]);
-  $price_zakup=htmlentities($_REQUEST["price_zakup"]);
+  $price_zakup=floatval($_REQUEST["price_zakup"]);
   $group_id=intval($_REQUEST["group_id"]);  
   $main=intval($_REQUEST["main"]);