Modify

Opened 3 years ago

Closed 15 months 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 16 months ago by rjollos

  • Owner coderanger deleted

comment:2 Changed 15 months ago by bebugz@…

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

comment:3 follow-up: Changed 15 months 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 15 months ago by rjollos (previous) (diff)

comment:4 in reply to: ↑ 3 Changed 15 months 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 15 months ago by rjollos

  • Resolution set to wontfix
  • Status changed from new to closed

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.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.