Merge pull request #14789 from woocommerce/fix/undefined-customer-user

Fixed undefined customer_user when remove users from order in admin
This commit is contained in:
Claudio Sanches 2017-04-28 13:28:18 -03:00 committed by GitHub
commit f6136ba326
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;
}