As the title says, I've run into a fresh bug that prevents me from editing tokens. Yesterday, all was fine. Today, I sat down to work on a token that's linked to a journal entry.
I created my token first, set it up with vision, and made it the size I wished. Next, I created a journal entry for the monster it would represent. So far, so good. Next, I edited the token to create a link between it and the journal entry. I have a "Hit Points" attribute set in the journal, so I set one of the bars on the token to use that attribute. I saved these changes. So far, so good.
The bug presents itself here. If I try to make further edits to the token, it does not reflect them. I click the "Save Settings" button, and all my changes revert. If I try to update Hit Points via the bubble on the token, again, nothing happens to the token. But the Journal entry linked to the token increments up or down as expected. If I drag from the Journal to make a new token, the hit points are as expected, even though the original token does not change. And again, if I try to rename the token (example: if I want the nameplate to read "Skeleton #1" instead of "Skeleton") saving the change does not work; it reverts to "Skeleton" upon clicking the button.
I have also verified that the buggy behavior goes away the moment that I unlink the Hit Points attribute from the token to the journal. If I change the token bar's attribute from "Hit Points" to "None," then I can save any changes I wish.
This doesn't appear to be an undocumented but intentional change, because I also have uncovered jQuery errors associated with clicking on the "Save Settings" button. See below for logs.
From Chrome:
(index):429 Uncaught TypeError: Cannot read property 'hit points' of undefined
at r (app.js?1617894168:598)
at T.i.updateModel (app.js?1617894168:598)
at HTMLDivElement.click (app.js?1617894168:598)
at HTMLButtonElement.props.click (jquery-ui.1.9.0.cust….js?1617893935:8646)
at HTMLButtonElement.dispatch (jquery-1.9.1.js:3074)
at HTMLButtonElement.elemData.handle (jquery-1.9.1.js:2750)
at HTMLButtonElement.nrWrapper ((index):429)
r @ app.js?1617894168:598
updateModel @ app.js?1617894168:598
click @ app.js?1617894168:598
props.click @ jquery-ui.1.9.0.cust….js?1617893935:8646
dispatch @ jquery-1.9.1.js:3074
elemData.handle @ jquery-1.9.1.js:2750
nrWrapper @ (index):429
From Firefox:
Uncaught TypeError: d20.journal.customSheets.reservedAttributes is undefined
r https://app.roll20.net/assets/app.js?1617894168:598
updateModel https://app.roll20.net/assets/app.js?1617894168:598
click https://app.roll20.net/assets/app.js?1617894168:598
jQuery 3
click
dispatch
handle
nrWrapper https://app.roll20.net/editor/:429
nrWrapper https://app.roll20.net/editor/:429
jQuery 22
add
add
on
each
each
on
name
init
init
jQuery
_createButtons
each
_createButtons
$.widget/</prototype[prop]</<
_create
$.widget/</prototype[prop]</<
_createWidget
namespace][name
$.widget.bridge/$.fn[name]/<
each
each
name
showDialog https://app.roll20.net/assets/app.js?1617894168:598
initialize https://app.roll20.net/assets/app.js?1617894168:596
promise callback*initialize/< https://app.roll20.net/assets/app.js?1617894168:596
trigger https://app.roll20.net/assets/base.js?1617893935:7
<anonymous> https://app.roll20.net/assets/app.js?1617894168:594
n https://app.roll20.net/assets/app.js?1617894168:583
<anonymous> https://app.roll20.net/assets/app.js?1617894168:594
n https://app.roll20.net/assets/app.js?1617894168:583
__onMouseUp https://app.roll20.net/assets/app.js?1617894168:585
C https://app.roll20.net/assets/app.js?1617894168:595
nrWrapper https://app.roll20.net/editor/:429
nrWrapper https://app.roll20.net/editor/:429
<anonymous> https://app.roll20.net/assets/app.js?1617894168:595
<anonymous> https://app.roll20.net/assets/app.js?1617894168:595
<anonymous> https://app.roll20.net/assets/app.js?1617894168:625
<anonymous> https://app.roll20.net/assets/app.js?1617894168:625
app.js:598:18172
r https://app.roll20.net/assets/app.js?1617894168:598
updateModel https://app.roll20.net/assets/app.js?1617894168:598
updateModel self-hosted:1173
click https://app.roll20.net/assets/app.js?1617894168:598
jQuery 3
click
dispatch
handle
nrWrapper https://app.roll20.net/editor/:429
(Async: EventListener.handleEvent)
nrWrapper https://app.roll20.net/editor/:429
jQuery 22
add
add
on
each
each
on
name
init
init
jQuery
_createButtons
each
_createButtons
$.widget/</prototype[prop]</<
_create
$.widget/</prototype[prop]</<
_createWidget
namespace][name
$.widget.bridge/$.fn[name]/<
each
each
name
showDialog https://app.roll20.net/assets/app.js?1617894168:598
showDialog self-hosted:1173
initialize https://app.roll20.net/assets/app.js?1617894168:596
(Async: promise callback)
initialize https://app.roll20.net/assets/app.js?1617894168:596
trigger https://app.roll20.net/assets/base.js?1617893935:7
<anonymous> https://app.roll20.net/assets/app.js?1617894168:594
n https://app.roll20.net/assets/app.js?1617894168:583
<anonymous> https://app.roll20.net/assets/app.js?1617894168:594
n https://app.roll20.net/assets/app.js?1617894168:583
__onMouseUp https://app.roll20.net/assets/app.js?1617894168:585
C https://app.roll20.net/assets/app.js?1617894168:595
nrWrapper https://app.roll20.net/editor/:429
(Async: EventListener.handleEvent)
nrWrapper https://app.roll20.net/editor/:429
<anonymous> https://app.roll20.net/assets/app.js?1617894168:595
<anonymous> https://app.roll20.net/assets/app.js?1617894168:595
<anonymous> https://app.roll20.net/assets/app.js?1617894168:625
<anonymous> https://app.roll20.net/assets/app.js?1617894168:625