Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
field system
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
9 Nov 2009 at 00:57 UTC
Updated:
23 Nov 2009 at 18:30 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| field_rename_add_more.patch | 1.65 KB | yched |
Comments
Comment #1
yched commentedDoh, FF preselected a wrong component for me...
Comment #2
sunNo, 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? :)
Comment #3
yched commentedach - I new I started seeing this at some point, but did not connect with dreditor.
diff -up: I know, sorry, Eclipse patches here :-(
Comment #4
dries commentedCommitted to CVS HEAD. Thanks!