From 97267a2a3d9b8a5991818b3bb63d16b9983aca9c Mon Sep 17 00:00:00 2001 From: Jacek Pyziak Date: Tue, 12 Aug 2025 12:58:23 +0200 Subject: [PATCH] =?UTF-8?q?Rzutowanie=20warto=C5=9Bci=20id=5Fadditional=5F?= =?UTF-8?q?field=20na=20int=20w=20metodzie=20dodawania=20niestandardowych?= =?UTF-8?q?=20p=C3=B3l=20produktu?= 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 ] ] ); } }