Rzutowanie wartości id_additional_field na int w metodzie dodawania niestandardowych pól produktu
This commit is contained in:
@@ -1262,7 +1262,7 @@ class ShopProduct
|
|||||||
{
|
{
|
||||||
if ( !empty( $custom_field ) )
|
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 ] ] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user