[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:
Jorge A. Torres 2022-09-26 13:10:27 -03:00 committed by GitHub
parent 96cdef649a
commit daf00f7f13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
Do no override order defaults with NULL values (HPOS)

View File

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