1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00
TiddlyWiki5/editions/test/tiddlers
Robin Munn 51bdf60ee8
Fix bug when using built-in list field as listField parameter to checkbox widget (#6897)
* Fix bug with checkbox widget and `list` field

The `list` field is stored as a list and frozen against modifications,
and getFieldList() returns it directly without creating a copy. So
before we modify it, we need to make a copy so we're not modifying a
frozen list. This bug doesn't manifest with custom fields, which are
stored as strings, only with the built-in `list` field.

* Fix checkboxes referencing non-existent tiddlers

This fixes the "tiddler is undefined" error when a checkbox's listField
property references a tiddler that doesn't (yet) exist.

* Better logic for checkbox listField handling

If the field contains an array, then it's almost certainly referenced
elsewhere and needs a defensive copy made. If it contained a string,
then it's safe to modify without making a defensive copy.
2022-09-22 18:52:55 +01:00
..
tests Fix bug when using built-in list field as listField parameter to checkbox widget (#6897) 2022-09-22 18:52:55 +01:00
DefaultTiddlers.tid Add a test edition and associated script 2013-04-25 09:06:41 +01:00
HelloThere.tid Change http://*.tiddlywiki.com/* to https:// 2017-11-11 11:56:20 +00:00
SiteSubtitle.tid Change SiteTitle/SiteSubtitle into $:/SiteTitle and $:/SiteSubtitle 2014-02-22 11:39:18 +00:00
SiteTitle.tid Change SiteTitle/SiteSubtitle into $:/SiteTitle and $:/SiteSubtitle 2014-02-22 11:39:18 +00:00