Set `is_deleted` from the database when instantiating a `Note` (https://github.com/woocommerce/woocommerce-admin/pull/6322)

This commit is contained in:
Jorge A. Torres 2021-02-17 21:37:34 -03:00 committed by GitHub
parent c9c843a1fb
commit f8d96f1b50
1 changed files with 1 additions and 0 deletions

View File

@ -109,6 +109,7 @@ class DataStore extends \WC_Data_Store_WP implements \WC_Object_Data_Store_Inter
$note->set_date_created( $note_row->date_created );
$note->set_date_reminder( $note_row->date_reminder );
$note->set_is_snoozable( $note_row->is_snoozable );
$note->set_is_deleted( (bool) $note_row->is_deleted );
$note->set_layout( $note_row->layout );
$note->set_image( $note_row->image );
$this->read_actions( $note );