Fixed undefined customer_user when remove users from order in admin

This commit is contained in:
Claudio Sanches 2017-04-28 13:13:18 -03:00
parent c48ddfbab8
commit e46cb8813d
1 changed files with 1 additions and 1 deletions

View File

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