[Bug 21552] error in validate_type_of_multiple_fields (SF_FormUtils)

2010-01-07 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=21552


Yaron Koren yaro...@gmail.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID




--- Comment #6 from Yaron Koren yaro...@gmail.com  2010-01-08 06:30:41 UTC ---
Setting to invalid - this is apparently no longer a bug in the current
version of SF.


-- 
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


[Bug 21552] error in validate_type_of_multiple_fields (SF_FormUtils)

2009-12-29 Thread bugzilla-daemon
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=00}}}
{{{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


[Bug 21552] error in validate_type_of_multiple_fields (SF_FormUtils)

2009-12-29 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=21552





--- Comment #5 from Jack D. Pond jack.p...@psitex.com  2009-12-29 15:39:52 
UTC ---
(In reply to comment #4)
Also, the symptom is that the browser hangs (can't find the field in question),
until the browser times out - this may be especially noticeable in IE, may just
appear as an error in other browsers.


-- 
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


[Bug 21552] error in validate_type_of_multiple_fields (SF_FormUtils)

2009-12-23 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=21552





--- Comment #2 from Jack D. Pond jack.p...@psitex.com  2009-12-23 21:51:30 
UTC ---
Yes, this is still a problem.  To replicate, do validation when you have
MULTIPLE instances of a multiple-instance template.  Only the first will be
validated because the javascript only verifies the passed ID.

This was a big problem for us - and would not alow us to have multiple
instances of where file uploads occured - the upload popup will fail.


-- 
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


[Bug 21552] error in validate_type_of_multiple_fields (SF_FormUtils)

2009-12-23 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=21552





--- Comment #3 from Jack D. Pond jack.p...@psitex.com  2009-12-23 21:56:34 
UTC ---
Yaron, wasn't this an IE only problem?   I just remember you couldn't save a
form because the validations would never pass.


-- 
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


[Bug 21552] error in validate_type_of_multiple_fields (SF_FormUtils)

2009-12-22 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=21552





--- Comment #1 from Yaron Koren yaro...@gmail.com  2009-12-22 19:23:04 UTC ---
I can't duplicate this problem; date validation works fine for me on
multiple-instance templates. Is this still an issue?


-- 
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