Closed (fixed)
Project:
Drupal core
Version:
5.x-dev
Component:
forms system
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
7 Mar 2007 at 02:04 UTC
Updated:
23 Mar 2007 at 04:15 UTC
right now the FAPI attribute #skip_duplicate_check can only be manipulated via hook_form_alter() -- it cannot be passed as an initial attribute in a form array, because drupal_prepare_form overwrites the value after the initial form array is passed in. this is rather inconvenient if you actually want to use this attribute. :)
attached patch simply adds a check for an existing setting before setting to the default value.
| Comment | File | Size | Author |
|---|---|---|---|
| skip_check_1.patch | 450 bytes | hunmonk |
Comments
Comment #1
dries commentedCommitted to CVS HEAD. Thanks! :)
Comment #2
heine commentedApplies with a small offset to 5.x as well.
Comment #3
chx commentedconfirm_form is broken in DRUPAL-5 because of this and there is a fix which also needs to be backported -- because of this, I deem this critic.
Comment #4
drummCommitted to 5.
Doesn't look like 4.7 is needed.
Comment #5
(not verified) commented