From 3fca3caf1d47349e66a3bf16fa72c2e946e7543d Mon Sep 17 00:00:00 2001 From: Hayden Whiteman Date: Sat, 22 Aug 2020 19:35:13 +1200 Subject: [PATCH] Fix #27413 --- assets/js/admin/meta-boxes-order.js | 1 + includes/admin/meta-boxes/views/html-order-notes.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/js/admin/meta-boxes-order.js b/assets/js/admin/meta-boxes-order.js index 74eb0bd9e60..750558aa44b 100644 --- a/assets/js/admin/meta-boxes-order.js +++ b/assets/js/admin/meta-boxes-order.js @@ -1315,6 +1315,7 @@ jQuery( function ( $ ) { }; $.post( woocommerce_admin_meta_boxes.ajax_url, data, function( response ) { + $( 'ul.order_notes .no-items' ).remove(); $( 'ul.order_notes' ).prepend( response ); $( '#woocommerce-order-notes' ).unblock(); $( '#add_order_note' ).val( '' ); diff --git a/includes/admin/meta-boxes/views/html-order-notes.php b/includes/admin/meta-boxes/views/html-order-notes.php index 50db87bcea2..906c3d700c9 100644 --- a/includes/admin/meta-boxes/views/html-order-notes.php +++ b/includes/admin/meta-boxes/views/html-order-notes.php @@ -41,7 +41,7 @@ defined( 'ABSPATH' ) || exit; } } else { ?> -
  • +