Hi all,

I made some experiments with the DynamicFieldsPlugin
(http://trac-hacks.org/wiki/DynamicFieldsPlugin) and noticed that the
0.12 branch did not work with Trac 0.12. However, Google found some
Twitter message that this branch has some problems and we should use
the
0.11 plugin version. Really, it runs.

However, I observed a strange behaviour. I created some custom fields
X1, X2 etc. and configured like

X1.show_when_type = task

This worked as promised (i.e., the X* fields are shown only when the
ticket type is "task"), but when I changed the ticket type to e.g.
"enhanced", the change log claimed "X1 deleted, X2 deleted" etc.
Indeed,
when I changed the ticket type back to "task", the values were lost
though the field forms were displayed again, the fields were blank.

This happens with default values as well as with manual entries. The
values are lost even when I change the ticket type on the fly without
submitting or even previewing the ticket.

My question: Is that a bug or a feature? I must say that I am not firm
with Javascript, my world is Python (and others).

BTW, I have been developing a successor of the condfield plugin
(https://trac-hacks.org/ticket/2486) based on Genshi only, which
already
works fine (but still needs some tests) and should not show the
problems
like performance (http://trac-hacks.org/ticket/9606) and
incompatibility
with ticket sorting as the DynamicFieldsPlugin is reported. Maybe,
this
will be a solution for some requirements, but about this later.

Greetings

Reinhard

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.

Reply via email to