Hi!
I use drupal_execute() to add multiple instances of a node type. Since they have the same form_id, the static $validated_forms array of drupal_validate_form() will cause every validation to be skipped except the first. I do not see any workaround I could use except to modify form.inc.
Could you provide a way to allow multiple submits of the same form, or propose a workaround?
Thanks,
Zoltan
Comments
Comment #1
bdragon commentedI just ran into this myself... Bumping.
Comment #2
buddaDang! I too have discovered this problem, and no fix :-/
The offending return....
Comment #3
darren ohStill here, and now in 7.x.
Comment #4
buddaDid somebody say 7.x ? :-)
Comment #5
markus_petrux commentedMarked the following issue as duplicate of this one, which is reported first.
#256573: drupal_validate_form() cannot be used twice on the same form
But then I found this, which has a bit more information and patches:
#260934: Static caching: when drupal_execute()ing multiple forms with same $form_id in a page request, only the first one is validated
Comment #6
TheThumbPuppy commentedsubscribing
this problem is a major inconvenience
surely when we look at creating nodes programmatically, creating a bunch of nodes of the same node type is very common
if anybody feels like solving this problem on D6 it would be most appreciated :)
Comment #7
jarune commented// remove this