Modify

Opened 11 years ago

Closed 9 years ago

#11338 closed defect (worksforme)

Draft displays hidden fields with incorrect values.

Reported by: anonymous Owned by: Rob Guttman
Priority: normal Component: DynamicFieldsPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.0

Description (last modified by Ryan J Ollos)

Entering a ticket with e.g.

[ticket-custom]
priority.show_if_group = developer
component.show_if_group = developer

The draft that automatically shows under the ticket form displays 'Blocker' as the priority even though the default is 'major'. I added a default 'Unassigned' for the component type and the first element in the selection list is displayed in the draft (which is not 'Unassigned').

The field should not be shown at all in the draft (as is the case if you press 'preview'). Or at least it should show the correct value.

Attachments (0)

Change History (5)

comment:1 Changed 11 years ago by anonymous

Additionally, the preview sets the values of these fields to the non-default values. adding a default_value for these fields in the [ticket-custom] section does not resolve the issue.

Last edited 9 years ago by Ryan J Ollos (previous) (diff)

comment:2 Changed 11 years ago by anonymous

Ah, but setting:

clear_on_hide = false 

sorts it out. Maybe that needs documenting as the behaviour is unexpected. Or perhaps that should be the default setting.

Last edited 9 years ago by Ryan J Ollos (previous) (diff)

comment:3 Changed 11 years ago by anonymous

I still have the problem in the preview/draft area where hidden fields are displayed. clear_on_hide = false doesn't sort this one out.

could this be fixed please?

Last edited 9 years ago by Ryan J Ollos (previous) (diff)

comment:4 Changed 9 years ago by Ryan J Ollos

Description: modified (diff)

comment:5 in reply to:  3 Changed 9 years ago by Ryan J Ollos

Resolution: worksforme
Status: newclosed

Replying to anonymous:

could this be fixed please?

It can only be fixed if we can confirm the issue. To confirm the issue we need information about your environment: plugins installed, [ticket-custom] section, etc.. If you still have trouble getting it to work, please as on the trac:MailingList.

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.