Modify

Opened 12 years ago

Closed 10 years ago

#11182 closed defect (wontfix)

radio custom fields are broken

Reported by: anonymous Owned by:
Priority: normal Component: CondFieldsPlugin
Severity: minor Keywords:
Cc: Trac Release: 1.0

Description

The configuration create custom field of type "radio". If the CondFieldsPlugin is disabled it works ok. If enabled... the radio field disappear. Actually the the html is broken, but the browser just ignore broken section.

The workaround is to use type "select" instead of "radio".

Attachments (0)

Change History (5)

comment:1 Changed 10 years ago by Ryan J Ollos

Owner: Noah Kantrowitz deleted

comment:2 Changed 10 years ago by bebugz@…

are there any progress on this issue. I'm experiencing that as well.

comment:3 Changed 10 years ago by bebugz@…

you can alter core trac ticket template at your own risk to make it work

File /trac/ticket/templates/ticket.html

MAKE BACKUP OF THIS FILE

Add id attribute:

<input_type="radio" name="field_${field.name}" id="field-${field.name}">

Remove

py:strip="field.type == 'radio'"
Last edited 10 years ago by Ryan J Ollos (previous) (diff)

comment:4 in reply to:  3 Changed 10 years ago by anonymous

Replying to bebugz@…:

<input_type="radio" name="field_${field.name}" id=field-${field.name}">

That wouldn't be a workaround. id attribute must be unique however radio elements are normally multiple.

comment:5 Changed 10 years ago by Ryan J Ollos

Resolution: wontfix
Status: newclosed

CondFieldsPlugin is deprecated. Please see notice on CondFieldsPlugin and use DynamicFieldsPlugin instead. If you have any issues creating an equivalent configuration with DynamicFieldsPlugin, please ask for help on the trac:MailingList.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
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.