In the TRACKER plugin, a tracker field of type "dynamic items list" does not get updated with the changing of the associated "item link" tracker field.
The fields and updates work properly when using the built in tiki-view_tracker.php Insert New Item form. When the same tracker is used on a wiki page with the TRACKER plugin, the drop-down box for the dynamic items list field does not update.
A found the issue to be in the javascript file lib\trackers\dynamic_list.js. My fix and proposed solution is as follows:
function selectValues(args, me, filter) { var req = null; var envdoc = this; var tabsel = me.split(","); var filtervalue = ""; tracker_dynamic_options = []; for (var i = 0; i < tabsel.length; i++) { tracker_dynamic_options[i] = document.getElementsByName("ins_" + tabsel[i])[0]; if (typeof tracker_dynamic_options[i] === "undefined") { tracker_dynamic_options[i] = document.getElementsByName("track[" + tabsel[i] + "]")[0]; } // HERE -----> // This next if statement is my addition to the function. In my HTML page I didn't find // any page elements named "track[" but I did find items named "track_" if (typeof tracker_dynamic_options[i] === "undefined") { tracker_dynamic_options[i] = document.getElementsByName("track_" + tabsel[i])[0]; } while (tracker_dynamic_options[i].childNodes.length !== 0) { tracker_dynamic_options[i].removeChild(tracker_dynamic_options[i].lastChild); } }
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
To help developers solve the bug, we kindly request that you demonstrate your bug on a show.tikiwiki.org instance. To start, simply select a version and click on "Create show.tikiwiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show.tikiwiki.org.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |