Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
forms system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Oct 2007 at 20:11 UTC
Updated:
8 Apr 2011 at 12:22 UTC
Jump to comment: Most recent file
Comments
Comment #1
andremolnar commentedthere's a patch - changing status to reflect this
Comment #2
TheMystic commentedInstead of resetting $form to NULL, shouldn't it be reset to an empty array? Corrected patch attached.
Comment #3
R.Muilwijk commentedI would like this to get in. Runned all tests without problems. The patch was not made on the right way though. Right patch supplied.
Comment #4
moshe weitzman commentedI believe we typically use $reset instead of $flush (e.g. node_load()). Otherwise, this looks good. Feel free to RTBC it after that change.
This issue is killing mailhandler module as it tries to validate multiple nodes/comment submissions in a single request.
Comment #5
R.Muilwijk commentedReworked $flush to $reset. As moshe suggested patch to RTBC
Comment #6
chx commentedSorry, not yet. This needs doxygen.
Comment #7
R.Muilwijk commentedWith doxygen :d
Comment #8
moshe weitzman commentedwell done. thanks.
Comment #9
chx commentedI concur, this is fine.
Comment #10
moshe weitzman commentedLets commit. #273570: attachments should (optionally) inherit the exposed filters from parent display and #260934: Static caching: when drupal_execute()ing multiple forms with same $form_id in a page request, only the first one is validated and #272042: There is no way to reset validation errors are all dupes of this issue.
Comment #11
karens commentedMoshe, I'm not sure http://drupal.org/node/260934 is a duplicate. That one is a static cache in the validate function. If a form doesn't get past that, it will never even get to this place in the code.
Comment #12
catchStill applies.
Comment #13
webchickSeems sane, and has the thumbs-up from the FAPI maintainer. Committed. Moving to 6.x, since the two referenced bugs were against 6.x modules. I don't know that we can apply it there since it's an API change, but moving it for Gabor nonetheless.
Comment #14
gábor hojtsyWe've done a similar small API expansion with the XML-RPC error handler on call from Dries, so I see no reason this should not get in. it does not affect the existing code. Committed to 6.x.
Comment #15
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #16
vivianspencer commentedIs this fixed for 5.x?
Comment #17
westbywest commentedI can't find this particular issue (#180063) listed as fixed on any recent D6 release. Has it been fixed yet?