From 86fb6111dbec00ad0d1317479d7ea230af81d1ee Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Tue, 30 Mar 2021 00:02:51 +0200 Subject: [PATCH] Encore des fix OwnedItem / item.data --- module/actor-sheet.js | 6 +++--- templates/item-danse-sheet.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/module/actor-sheet.js b/module/actor-sheet.js index 732b1922..5cd04ee4 100644 --- a/module/actor-sheet.js +++ b/module/actor-sheet.js @@ -407,19 +407,19 @@ export class RdDActorSheet extends ActorSheet { // Display info about queue html.find('.queuesouffle-label a').click((event) => { let myID = event.currentTarget.attributes['data-item-id'].value; - const item = this.actor.getOwnedItem(myID); + const item = this.actor.getEmbeddedDocuments('Item', myID); item.sheet.render(true); }); // Info sort html.find('.sort-label a').click((event) => { let myID = event.currentTarget.attributes['data-id'].value; - const item = this.actor.getOwnedItem(myID); + const item = this.actor.getEmbeddedDocuments('Item', myID); item.sheet.render(true); }); // Info sort html.find('.case-label a').click((event) => { let myID = event.currentTarget.attributes['data-id'].value; - const item = this.actor.getOwnedItem(myID); + const item = this.actor.getEmbeddedDocuments('Item', myID); item.sheet.render(true); }); diff --git a/templates/item-danse-sheet.html b/templates/item-danse-sheet.html index dc67d164..520b6e8d 100644 --- a/templates/item-danse-sheet.html +++ b/templates/item-danse-sheet.html @@ -11,7 +11,7 @@