meta_id default to 0

This commit is contained in:
Mike Jolley 2019-06-13 16:17:58 +01:00
parent 7aa7ca1baf
commit d54bb381c0
1 changed files with 1 additions and 1 deletions

View File

@ -284,7 +284,7 @@ class Coupons extends AbstractObjectsController {
case 'meta_data':
if ( is_array( $value ) ) {
foreach ( $value as $meta ) {
$coupon->update_meta_data( $meta['key'], $meta['value'], isset( $meta['id'] ) ? $meta['id'] : '' );
$coupon->update_meta_data( $meta['key'], $meta['value'], isset( $meta['id'] ) ? $meta['id'] : 0 );
}
}
break;