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 .
×
Create a free account
This post has been closed. You can still view previous posts, but you can't post any new replies.

[Bug] [SheetWorkers] getSectionIDs() on Dev is returning (almost) duplicate values

1447921570
Chris D.
Pro
Sheet Author
API Scripter
Compendium Curator
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; getSectionIDs("repeating_discipline", function(darray) { log( "Health"); log( darray ); Is logging Health sheetsandboxworker.js:51 ["-K3TDGgKEKl5lw9YN4Kc", "-k3tdggkekl5lw9yn4kc"] This is a brand new campaign and brand new character, so it should not be a case of values leftover from something else.&nbsp; There is only one item in the repeating section. Note that these two repeating section IDs are identical except that one is mixed case, and the other is lower case only. I think that somewhere something is converting a mixed case ID to lower case, then thinking it has a 2nd (different) ID. Note also that I had another problem working with repeating sections not working as I expected them to. See also: <a href="https://app.roll20.net/forum/post/2638881/sheetwor" rel="nofollow">https://app.roll20.net/forum/post/2638881/sheetwor</a>... which I posted in the Pro section. Thanks.&nbsp;
1447935241
The Aaron
Roll20 Production Team
API Scripter
This is a known issue Riley said he's working on. For a work around, you can look at the code here:&nbsp;<a href="https://app.roll20.net/forum/permalink/2635257/" rel="nofollow">https://app.roll20.net/forum/permalink/2635257/</a>
Thanks for linking that Aaron. As Aaron said, we are aware of the issue and it is being worked on. The workaround should work in the meantime.&nbsp;
1447965272
Stephen Koontz
Forum Champion
Marketplace Creator
Sheet Author
API Scripter
Compendium Curator
This should be fixed now.