Fixed undefined customer_user when remove users from order in admin
This commit is contained in:
parent
c48ddfbab8
commit
e46cb8813d
|
@ -467,7 +467,7 @@ class WC_Meta_Box_Order_Data {
|
|||
}
|
||||
|
||||
// Update customer.
|
||||
$customer_id = absint( $_POST['customer_user'] );
|
||||
$customer_id = isset( $_POST['customer_user'] ) ? absint( $_POST['customer_user'] ) : 0;
|
||||
if ( $customer_id !== $order->get_customer_id() ) {
|
||||
$props['customer_id'] = $customer_id;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue