Closed (fixed)
Project:
Drupal core
Version:
x.y.z
Component:
forms system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Feb 2006 at 20:22 UTC
Updated:
13 Mar 2006 at 19:02 UTC
Jump to comment: Most recent file
Comments
Comment #1
chx commentedthis does not belong to form API IMO.
Comment #2
markus_petrux commentedSure, but there's already code in place to filter 'submit' and 'form_id':
Searching (probably better than when initially opened this issue) I've found this:
http://drupal.org/node/41170
Comment #3
markus_petrux commentedPatch re-rolled.
If it has not to be fixed somewhere else, current approach is incomplete. 'reset' still gets saved to the variable table. This patch would fix that.
Comment #4
markus_petrux commentedComment #5
markus_petrux commentedAha! It's been bumped by the automatic close. I was looking for it as reference here:
http://drupal.org/node/46255
The patch proposed in this issue just follows what's been done by #46255
Comment #6
moshe weitzman commentedComment #7
markus_petrux commentedAs far as I can see, the patch still applies.
Comment #8
chx commentedStill. Why not system_settings_form_submit ? I remove submit and form_id because these are very common and it's simpler this way but that reset is very form specific.
Comment #9
markus_petrux commentedI think it's easy if all this stuff is coded in the same place. No matter where, IMO.
Comment #10
chx commentedpetty matter. does not worth the time. please commit this.
Comment #11
markus_petrux commentedI believe the patch in comment #3 still applies. Please, let me know if it doesn't.
This is trivial. It's just aimed to complete something that if it should be changed, well, how exactly? so we could work out a different solution.
Otherwise, 'reset' is still saved into the variables table...
Comment #12
markus_petrux commentedPatch re-rolled.
Comment #13
markus_petrux commentedNote that I'm removing
global $form_values;. It is accessed via$GLOBALS.Comment #14
killes@www.drop.org commentedapplied.
Comment #15
(not verified) commented