Closed (fixed)
Project:
Webform
Version:
7.x-3.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Jan 2011 at 19:12 UTC
Updated:
21 Jan 2011 at 20:30 UTC
In Drupal 7, the 'class' attribute needs to be an array, not a string. The attached patch attempts to convert all instances in Webform that weren't converted yet.
I'm marking this major because in certain situations, this can cause fatal errors (e.g., if $class = 'some-class' and then another part of Drupal runs $class[] = 'another-class'). I have seen this occur on the webform results page sometimes, although I'm not sure exactly what the trigger is.
| Comment | File | Size | Author |
|---|---|---|---|
| webform-fix-classes.patch | 5.68 KB | David_Rothstein |
Comments
Comment #1
quicksketchWerid, I thought I got all these already. Thanks for the patch, committed to HEAD.