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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cha0s’s picture

bump...

Damien Tournoud’s picture

Version: 6.x-dev » 7.x-dev

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.

cha0s’s picture

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..?

Damien Tournoud’s picture

Status: Active » Needs review

@cha0s, let's open a task, if you are willing to take the lead on this.

Anonymous’s picture

Status: Needs review » Needs work

The last submitted patch failed testing.

casey’s picture

Status: Needs work » Fixed
casey’s picture

Status: Fixed » Needs work
Issue tags: +Novice

Oops to quick of judgement; no its not.

Currently can't provide patches.

  $form['#attributes'] = array('class' => array('confirmation'));

Should become

  $form['#attributes']['class'][] = 'confirmation';
adityakg’s picture

FileSize
634 bytes

Hi, I am new here. I am trying to learn on how to apply patches :)

adityakg’s picture

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:

adityakg’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, system.module.confirm-form.patch, failed testing.

adityakg’s picture

adityakg’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, system.module.confirm-form.patch, failed testing.

adityakg’s picture

Status: Needs work » Needs review
FileSize
664 bytes

sorry for the spamming :(

Status: Needs review » Needs work

The last submitted patch, system.module.confirm-form.patch, failed testing.

adityakg’s picture

Status: Needs work » Needs review
FileSize
647 bytes
casey’s picture

Status: Needs review » Reviewed & tested by the community

Some trouble with windows style newlines I see, but you fixed that.

Patch is good to go.

adityakg’s picture

#18: thanks! still getting a grip of it. so, sorry for the spamming :)

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

Status: Fixed » Closed (fixed)
Issue tags: -Novice

Automatically closed -- issue fixed for 2 weeks with no activity.