Webform labels don't render in 2.x
This needs to be added to the array returned by _webform_render_productfield:
'#title' => $filter ? _webform_filter_xss($component['name']) : $component['name'],
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | commerce_webform-2536028-4.patch | 1.5 KB | johnennew |
Comments
Comment #1
karingComment #2
johnennew commentedHi Karin, Just catching up on these issues.
Are you sure this is needed as the title gets set by #title_display in _webform_render_productfield().
When I added #title, it ended up printing the title twice in some cases.
Comment #3
johnennew commentedI think you are right actually, but I have a different issue when added.
When its a drop down select box then we see 2 title's with this change, but 1 title on radios and check boxes.
Comment #4
johnennew commentedI believe this patch works in all cases!
Comment #6
johnennew commentedCommitted to 7.x-2.x with thanks!
Comment #7
johnennew commented