https://bugzilla.wikimedia.org/show_bug.cgi?id=21552





--- Comment #4 from Jack D. Pond <jack.p...@psitex.com>  2009-12-29 15:36:44 
UTC ---
(In reply to comment #1)
> I can't duplicate this problem; date validation works fine for me on
> multiple-instance templates. Is this still an issue?

This error occurs when there are multiple instances of multi-part forms that
contain any fields that use validate_type_of_multiple_fields.  The primary
example of this is dates.  You can reproduce this in two ways:

1. Create a multi-part form that uses at least two different templates each
having a unique field that uses the above validate:
2. Create a multiple instance form with a field that has the validate in
question.

In either case, the second field would fail to validate because it doesn't
exist (found this out by debugging the javascript).

To validate the existence of this bug, I offer three options:

1. Use the below code (you'd have to create your own templates or get them from
me)
2. Contact me and I'll set up a site to demonstrate
3. Take my word for it - this is a real a replicable problem solved by the
attached fix (which doesn't have any performance or security issues)

<pre>
{{{info|Add title=Add New Change/Incident Report|edit title=Edit New
Change/Incident Report|page name=CIR-<unique number;start=000000>}}}
{{{for template|Change Incident Report}}}
{| {{FormStyle}} style="width:100%"
|-
| colspan=2 | {{{field|Name|size=80}}}
| colspan=2 | {{{field|Date|input type=datetime|default=now}}}
|}
{{{end template}}}

{{{for template|Activity Plan|multiple}}}
{| {{FormStyle}} style="width:100%"
|-
! style="vertical-align:text-top;" | &nbsp;&nbsp;Expected Time to Complete:
| {{{field|Expected Time to Complete|input type=datetime|default=now}}}
|}
{{{end template}}}
</pre>


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to