Rzutowanie id dodatkowego pola na int w metodzie dodawania niestandardowych identyfikatorów

This commit is contained in:
2025-08-12 12:58:07 +02:00
parent 5b4894ff82
commit 325aabc0e8

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