From c735d907305e28de4077b227f24d8409d134d5ee Mon Sep 17 00:00:00 2001 From: Haxxer Date: Fri, 30 Aug 2024 14:45:34 +0100 Subject: [PATCH] Fixes --- changelog.md | 7 +++++++ src/API/private-api.js | 3 ++- src/applications/components/PriceList.svelte | 7 ++++--- .../merchant-app/components/ItemEntry.svelte | 17 +++-------------- src/helpers/pile-utilities.js | 6 +++--- 5 files changed, 19 insertions(+), 21 deletions(-) diff --git a/changelog.md b/changelog.md index 9c584844..a9188528 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,12 @@ # Item Piles Changelog +## Version 3.1.2 + +- Fixed custom purchase and sell prices not working properly +- Fixed some more localization in the item editor application +- Fixed dragging and dropping items onto existing item piles not working +- Fixed item pile settings on items not being saved properly + ## Version 3.1.1 - Updated PF1e system support (thank you Mana!) diff --git a/src/API/private-api.js b/src/API/private-api.js index c57319fa..9a2c39a4 100644 --- a/src/API/private-api.js +++ b/src/API/private-api.js @@ -282,7 +282,8 @@ export default class PrivateAPI { const sourceTransaction = new Transaction(sourceActor); if (SYSTEMS.DATA.ITEM_TYPE_HANDLERS) { const newItems = []; - for (const itemData of items) { + for (const data of items) { + const itemData = data?.item ?? data; const item = sourceActor.items.get(itemData._id ?? itemData.id); const handler = Utilities.getItemTypeHandler(CONSTANTS.ITEM_TYPE_METHODS.TRANSFER, item.type); if (!handler) continue; diff --git a/src/applications/components/PriceList.svelte b/src/applications/components/PriceList.svelte index b9e166e3..d9274702 100644 --- a/src/applications/components/PriceList.svelte +++ b/src/applications/components/PriceList.svelte @@ -224,15 +224,16 @@
{#if presetPrices.length && presets}
- {localize("ITEM-PILES.Applications.ItemEditor.PricePreset")} + {localize("ITEM-PILES.Applications.ItemEditor.PriceTab.PricePreset")}