From b1c5000a43747bc93eef1d1c3dc0c871973f51cb Mon Sep 17 00:00:00 2001 From: Jacek Pyziak Date: Tue, 12 Aug 2025 12:58:43 +0200 Subject: [PATCH] =?UTF-8?q?Rzutowanie=20id=20dodatkowego=20pola=20na=20int?= =?UTF-8?q?=20w=20metodzie=20dodawania=20niestandardowych=20p=C3=B3l=20pro?= =?UTF-8?q?duktu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- autoload/admin/factory/class.ShopProduct.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/admin/factory/class.ShopProduct.php b/autoload/admin/factory/class.ShopProduct.php index bdb7b0b..0e72550 100644 --- a/autoload/admin/factory/class.ShopProduct.php +++ b/autoload/admin/factory/class.ShopProduct.php @@ -1262,7 +1262,7 @@ class ShopProduct { if ( !empty( $custom_field ) ) { - $exits_custom_ids[] = $mdb -> get( 'pp_shop_products_custom_fields', 'id_additional_field', [ 'AND' => [ 'id_product' => $product_id, 'name' => $custom_field ] ] ); + $exits_custom_ids[] = (int)$mdb -> get( 'pp_shop_products_custom_fields', 'id_additional_field', [ 'AND' => [ 'id_product' => $product_id, 'name' => $custom_field ] ] ); } }