Posted by cha0s on October 10, 2008 at 7:15pm
| Project: | Drupal core |
| Version: | 7.x-dev |
| Component: | forms system |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
| Issue tags: | Novice |
Issue Summary
confirm_form() shouldn't assume that it is the only one on the form to set the '#attributes' element. Please merge the array instead of assigning it.
Comments
#1
bump...
#2
Why not suggesting a patch? It will have to be against the 7.x code base (HEAD tag in CVS).
Please read http://drupal.org/patch/create for more information.
#3
Sure thing. After playing I realized we can just concat the string... which leads me to my next issue:
$form['#attributes']['class'] should be an array. What would I file that under, a feature request..?
#4
@cha0s, let's open a task, if you are willing to take the lead on this.
#5
The last submitted patch failed testing.
#6
fixed for D7
http://api.drupal.org/api/function/confirm_form/7
#7
Oops to quick of judgement; no its not.
Currently can't provide patches.
<?php$form['#attributes'] = array('class' => array('confirmation'));
?>
Should become
<?php$form['#attributes']['class'][] = 'confirmation';
?>
#8
Hi, I am new here. I am trying to learn on how to apply patches :)
#9
I'm sorry for the previous not-working patch. The previous patch is patched from the 'modules/system' folder instead of drupal '.' folder. 2nd try:
#10
#11
The last submitted patch, system.module.confirm-form.patch, failed testing.
#12
#13
#14
The last submitted patch, system.module.confirm-form.patch, failed testing.
#15
sorry for the spamming :(
#16
The last submitted patch, system.module.confirm-form.patch, failed testing.
#17
#18
Some trouble with windows style newlines I see, but you fixed that.
Patch is good to go.
#19
#18: thanks! still getting a grip of it. so, sorry for the spamming :)
#20
Committed to CVS HEAD. Thanks.
#21
Automatically closed -- issue fixed for 2 weeks with no activity.