Plugin TrackerToggle doesn't display the hidden field if attempting to change value in a previously saved itemId
- Status
- Open
- Subject
- Plugin TrackerToggle doesn't display the hidden field if attempting to change value in a previously saved itemId
- Version
- 12.x
13.x
14.x - Category
- Conflict of two features (each works well independently)
- Consistency
- Error
- Feature request
- Feature
- Edit interface (UI)
Trackers - Resolution status
- New
- Submitted by
- Xavier de Pedro
- Lastmod by
- Xavier de Pedro
- Rating
- Description
Plugin TrackerToggle doesn't display the hidden field if attempting to change value in a previously saved itemId
I followed the documentation found here:
https://doc.tiki.org/PluginTrackerToggle
with this type of syntax in a pretty tracker page:Copy to clipboard{TRACKER(trackerId="1" fields="2:5:10:11" showtitle="n" showdesc="n" showfieldsdesc="y" showmandatory="y" showstatus="y" wiki="Template1")}{TRACKER} {trackertoggle fieldId="5" value=1 visible="y" id="condiv"}
And the wiki page Template1 contains:Copy to clipboardField 2: {$f_2} Field 5: {$f_5} {DIV(id=condiv)}Field 10: {$f_10}{DIV} Field11: {$f_11}
and the field is hidden by default, however it doesn't get displayed when the radio button gets the value "1" (yes) when visiting a previously saved item; e.g., with the url like:
http://xavi-9794-5689.show.tikiwiki.org/tiki-index.php?page=HomePage&itemId=3(please note that this itemId3 has field5 stored with value 0 (case A). That's why even if you click (at item edition time) to the second value of the radio button (value 1 - case 😎, nothing is shown (because field5 has value 0 stored or in the session or something).
See it reproduced here:
http://xavi-9794-5689.show.tikiwiki.org/tiki-index.php?page=HomePage&itemId=3
u: admin
p: 12345- Solution
Solution:
Get the TrackerToggle plugin to listen to the edition in the form on the fly, and not just working based on saved values when serving the page.- Importance
- 5
- Easy to solve?
- 8
- Priority
- 40
- 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
- 5689
- Created
- Thursday 23 July, 2015 13:34:38 UTC
by Xavier de Pedro - LastModif
- Thursday 23 July, 2015 14:22:56 UTC