Closed (fixed)
Project:
Webform
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
8 May 2011 at 00:59 UTC
Updated:
23 May 2011 at 16:31 UTC
This patch removes referencing $component['type'] in a few of our component render functions. These calls are entirely unnecessary because we already know which component we're in, so there's no need to use a variable. The motivator for this issue is better compatibility with Form Builder. See #1149964: Reduce duplicated code between Form Builder and Webform (default fields).
| Comment | File | Size | Author |
|---|---|---|---|
| webform_better_defaults-d7.patch | 3.75 KB | quicksketch | |
| webform_better_defaults-d6.patch | 3.83 KB | quicksketch |
Comments
Comment #1
quicksketchCommitted to both branches.
Comment #2
tstoecklerSeems this should have been 'webform-component-fieldset' (note the d in fieldset). The typo is only in the D7 patch.
Comment #3
quicksketchNice one! Thanks tstoeckler! Fixed and committed.