diff --git a/changelog.md b/changelog.md index c863bdd0..449b99bf 100644 --- a/changelog.md +++ b/changelog.md @@ -4,6 +4,8 @@ - Fixed opening item pile interfaces would spawn duplicate windows instead of focusing existing interfaces - Fixed item piles chat messages not working in v11 +- Fixed errors when trying to get document templates in v12 (fixes merchant columns & item pile system settings) +- Fixed deprecation warnings surrounding `CONST.DOCUMENT_PERMISSION_LEVELS` ## Version 3.0.1 diff --git a/src/API/private-api.js b/src/API/private-api.js index 9917ef1d..01fad17d 100644 --- a/src/API/private-api.js +++ b/src/API/private-api.js @@ -1810,7 +1810,7 @@ export default class PrivateAPI { const actorOwners = Object.entries(targetActor.ownership) .filter(entry => { - return entry[0] !== "default" && entry[1] === CONST.DOCUMENT_PERMISSION_LEVELS.OWNER; + return entry[0] !== "default" && entry[1] === CONST.DOCUMENT_OWNERSHIP_LEVELS.OWNER; }) .map(entry => game.users.get(entry[0])) .sort(user => user.isGM ? 1 : -1); diff --git a/src/applications/components/PropertyPathInput.svelte b/src/applications/components/PropertyPathInput.svelte index 88e60daf..f15469e9 100644 --- a/src/applications/components/PropertyPathInput.svelte +++ b/src/applications/components/PropertyPathInput.svelte @@ -1,26 +1,20 @@