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.

CommentFileSizeAuthor
webform-fix-classes.patch5.68 KBDavid_Rothstein
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

quicksketch’s picture

Status: Needs review » Fixed

Werid, I thought I got all these already. Thanks for the patch, committed to HEAD.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.