Bug in custom list. get_list_item() counts from 1?

331 viewsCSS BugsBug custom list list
1

So….

self.add_to_list("list3", "some_text", 0)
self.add_to_list("list3", "some_other_text", 1)
self.show_message(self.get_list_item("list3", 1))

displays in live > some_text

and…

self.add_to_list("list3", "some_text", 0)
self.add_to_list("list3", "some_other_text", 1)
self.show_message(self.get_list_item("list3", 2))

displays in live > some_other_text

So basically the add function counts from 0 and the get function counts from 1.

Cheers!

JohnC Answered question December 8, 2024
0

Yes this may be correct, I’m not 100% certain it is a bug however.

JohnC Answered question December 8, 2024