Modify

Opened 10 years ago

Closed 9 years ago

#12290 closed defect (worksforme)

Default value of text areas and text fields are not shown when using "show_when_type"

Reported by: giovanni.virdis@… Owned by: Ryan J Ollos
Priority: normal Component: DynamicFieldsPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.0

Description (last modified by Ryan J Ollos)

The default value of the field is ignored if the field is configured as .show_when_type and is hidden at page load.

I have this issue either if I use [field].value or [field].default_value.

trac version: 1.0.5

Dynamic Fields Plugin installed from diff-from-_-14531-to-dynamicfieldsplugin-14531 (trunk).

Please let me know if you need further informations. Thank you

Attachments (1)

trac.ini (22.0 KB) - added by Giovanni Virdis 10 years ago.
trac.ini for default field issue

Download all attachments as: .zip

Change History (7)

comment:1 Changed 10 years ago by Ryan J Ollos

Description: modified (diff)

comment:2 Changed 10 years ago by Ryan J Ollos

Owner: changed from Rob Guttman to Ryan J Ollos
Status: newaccepted

comment:3 Changed 10 years ago by Ryan J Ollos

Could you post your entire [ticket-custom] section? I'll have some time in a few days to try and reproduce.

Changed 10 years ago by Giovanni Virdis

Attachment: trac.ini added

trac.ini for default field issue

comment:4 Changed 10 years ago by anonymous

Thank you very much. I left a default value only in the field named permission. for my tests. The issue is repeatable in each field. trac.ini is my [ticket-custom].

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

comment:5 Changed 9 years ago by Ryan J Ollos

The only case I can see in your configuration for which a default value is applied is the value 755 for permissi when the type is Job Jenkins. Is the case for which you discovered the bug?

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

comment:6 Changed 9 years ago by Ryan J Ollos

Resolution: worksforme
Status: acceptedclosed

Per the documentation (DynamicFieldsPlugin#Hiderule), please add the following to [ticket-custom] in trac.ini:

permessi.clear_on_hide = false

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
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.