Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.