Tracker Plugin - Dynamic Items List field doesn't update
- Status
- Closed
- Subject
- Tracker Plugin - Dynamic Items List field doesn't update
- Version
- 6.x
- Category
- Error
- Usability
- Feature
- Trackers
- Resolution status
- Invalid
- Submitted by
- mminnie
- Lastmod by
- Ushindi Gedeon
- Rating
- Description
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.
- Solution
A found the issue to be in the javascript file lib\trackers\dynamic_list.js. My fix and proposed solution is as follows:
dynamic_list.jsCopy to clipboardfunction 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); } }- Workaround
- Importance
- 5
- Priority
- 25
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 3785
- Created
- Saturday 05 February, 2011 17:05:46 UTC
by mminnie - LastModif
- Tuesday 30 June, 2026 15:38:15 UTC