[COT] Do not set order prop to NULL while reading order data (#34822)
Do not set order prop to NULL while reading order (HPOS)
This commit is contained in:
parent
96cdef649a
commit
daf00f7f13
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: fix
|
||||
|
||||
Do no override order defaults with NULL values (HPOS)
|
|
@ -836,6 +836,9 @@ SELECT type FROM {$this->get_orders_table_name()} WHERE id = %d;
|
|||
}
|
||||
|
||||
$prop_value = $order_data->{$prop_details['name']};
|
||||
if ( is_null( $prop_value ) ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( 'date' === $prop_details['type'] ) {
|
||||
$prop_value = $this->string_to_timestamp( $prop_value );
|
||||
|
|
Loading…
Reference in New Issue