Pointed by sun while discussing #626354: Remove #process pattern from number field:
We don't need to prefix the key of the 'add more' button in the $form structure - basically:

-      $form_element[$field_name . '_add_more'] = array(
+      $form_element['add_more'] = array(

Unneeded cruft, the #name property already contains all the info needed to differentiate between the several buttons in the page.

CommentFileSizeAuthor
field_rename_add_more.patch1.65 KByched
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

yched’s picture

Component: simpletest.module » field system

Doh, FF preselected a wrong component for me...

sun’s picture

Status: Needs review » Reviewed & tested by the community

No, that's Dreditor :) It stores the last selected component for each project. ;)

Can you roll patches with diff -up, please, so we can see the context of the changes? :)

yched’s picture

ach - I new I started seeing this at some point, but did not connect with dreditor.

diff -up: I know, sorry, Eclipse patches here :-(

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks!

Status: Fixed » Closed (fixed)

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