Modify

Opened 13 years ago

Closed 13 years ago

Last modified 11 years ago

#9986 closed defect (fixed)

show when checkbox enabled doesn't work

Reported by: skyrat@… Owned by: Rob Guttman
Priority: normal Component: DynamicFieldsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description (last modified by Ryan J Ollos)

I tried various keywords to specify the state of a checkbox (true/false, enabled/disabled, 0/1). 0/1 finally was doing at least something:

[ticket-custom]
expertmode = checkbox
expertmode.label = Expert mode
expertmode.options =
expertmode.order = 7
expertmode.value = 0

when priority.show_when_expertmode = 0

-> reloading (checkbox unchecked) -> Priority was NOT shown but should be

and when priority.show_when_expertmode = 1

-> reloading (checkbox unchecked) -> Priority was shown but should NOT be

The second thing is that clicking the checkbox did not react in any visual case so the fields remained unchanged.

Am I missing something? When just changing the control type from checkbox to select, all worked as expected.

Attachments (0)

Change History (5)

comment:1 Changed 13 years ago by Rob Guttman

(In [11519]) refs #9986: now handles checkbox triggers.

comment:2 Changed 13 years ago by Rob Guttman

Resolution: fixed
Status: newclosed

Oops, I wasn't handling checkboxes as trigger fields. Please try the above fix and reopen if it doesn't work. Thanks.

comment:3 Changed 13 years ago by Rob Guttman

Note, please only use the 0.11 branch.

comment:4 Changed 11 years ago by Ryan J Ollos

Description: modified (diff)

comment:5 Changed 11 years ago by Ryan J Ollos

In 13650:

Bump version to 1.2.4. Refs #11378, #11118, #11523, #10126, #9605, #9986, #9996, #8971.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Rob Guttman.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.