From b4eb66bef536a91e45c62a1900b616abd6904cc9 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Tue, 13 Apr 2021 21:33:05 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20d=C3=A9placement=20de=20conteneur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/actor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/actor.js b/module/actor.js index 96dca173..1f543899 100644 --- a/module/actor.js +++ b/module/actor.js @@ -1032,7 +1032,7 @@ export class RdDActor extends Actor { let newItemId = itemMap[item.id]; // Get newItem console.log('New conteneur filling!', newConteneur, newItemId, item); - let contenu = duplicate(newConteneur.data.contenu); + let contenu = duplicate(Misc.templateData(newConteneur).contenu); contenu.push(newItemId); await this.updateEmbeddedDocuments('Item', [{ _id: newConteneurId, 'data.contenu': contenu }]); }