Rzutowanie id dodatkowego pola na int w metodzie dodawania niestandardowych pól produktu

This commit is contained in:
2025-08-12 12:58:43 +02:00
parent 3a780ca979
commit b1c5000a43

View File

@@ -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 ] ] );
}
}