Closed (fixed)
Project:
Flexinode
Version:
master
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
21 Apr 2006 at 11:19 UTC
Updated:
10 May 2006 at 11:30 UTC
Jump to comment: Most recent file
Core provides validation that required fields are filled in. See _form_validate() in form.inc.
Flexinode duplicates that validation in flexinode_validate(). The duplicate check should be removed.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 59733.patch | 692 bytes | samc |
Comments
Comment #1
ahoeben commentedI think flexinode is providing its own validation so it can alter the form with a message about the missing field.
This line seems superfluous in the flexinode_validate() function:
Comment #2
samc commentedPatch attached. Tested with a few fieldtypes, but not exhaustively.
@ahoeben: The duplication is in the if block following the flexinode_invoke.
The flexinode_invoke is a callback/hook provided so that fieldtypes can implement custom validation.
Comment #3
samc commentedDid a bunch more testing with lots of fieldtypes and this seems solid.
Comment #4
ahoeben commentedYou are right. Please disregard my earlier comment.
+1
Comment #5
Bèr Kessels commentedreviewed and committed. Thanks.
Comment #6
(not verified) commented