From 172549f897e2a5e07a9a30985a12327d8f7467d9 Mon Sep 17 00:00:00 2001 From: vnmedeiros Date: Thu, 7 May 2020 16:16:58 -0300 Subject: [PATCH] change call constructor `Item_Metadata_Entity` --- src/classes/repositories/class-tainacan-item-metadata.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/repositories/class-tainacan-item-metadata.php b/src/classes/repositories/class-tainacan-item-metadata.php index 45e3bf399..8cd43f783 100644 --- a/src/classes/repositories/class-tainacan-item-metadata.php +++ b/src/classes/repositories/class-tainacan-item-metadata.php @@ -111,7 +111,7 @@ class Item_Metadata extends Repository { do_action( 'tainacan-insert', $item_metadata ); do_action( 'tainacan-insert-Item_Metadata_Entity', $item_metadata ); - $new_entity = new Entities\Item_Metadata_Entity( $item_metadata->get_item(), $item_metadata->get_metadatum() ); + $new_entity = new Entities\Item_Metadata_Entity( $item_metadata->get_item(), $item_metadata->get_metadatum(), $item_metadata->get_meta_id(), $item_metadata->get_parent_meta_id() ); if ( isset( $added_compound ) && is_int( $added_compound ) ) { $new_entity->set_parent_meta_id( $added_compound );