Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×

Reapting Fieldsets ID changes when deleting - Possible Bug

Hi All, So I wanted to check I'm not doing something dumb before I report a bug. I have noticed that there appears to be a difference in capitalisation between a row's ID when it's in use and when it gets deleted. So I set up a test example as follows: on ("change:repeating_skilleffects:skilleffectactive", function (eventInfo) {     console.log(eventInfo); }); which gives the following output: {sourceAttribute: "repeating_skilleffects_-m6ylmrzihmbzzeeelzf_skilleffectactive", sourceType: "player", triggerName: "repeating_skilleffects_-m6ylmrzihmbzzeeelzf_skilleffectactive", previousValue: "1", newValue: "1"} You'll notice that the ID of the row is -m6ylmrzihmbzzeeelzf However when I do the same thing when deleting an item on ("remove:repeating_skilleffects", function (eventInfo) {      console.log(eventInfo); }); I get the following output {sourceAttribute: "repeating_skilleffects_-M6YlmrzIHMBZzEEeLZf", sourceType: "player", triggerName: "remove:repeating_skilleffects", removedInfo: {…} This time the ID of the row is -M6YlmrzIHMBZzEEeLZf. While the characters are the same, some are uppercase. I have never seen this behaviour before. Am I doing something dumb? Is this difference in character case expected/normal behaviour? Or is it a bug? Thanks. Owen
1588666467
GiGs
Pro
Sheet Author
API Scripter
sourceattribute, when triggered by a change event, always shows lower case - because attributes have to be lower case to be picked up by change events. The actual row ID is being shown in the remove console.log, my guess is thats because its not coming through the change event.
GiGs said: sourceattribute, when triggered by a change event, always shows lower case - because attributes have to be lower case to be picked up by change events. The actual row ID is being shown in the remove console.log, my guess is thats because its not coming through the change event. Makes sense. Thanks GiGi.