Thread

No space in classes in the shared form

November 16, 2017 3:42pm

Subscribe [2]
  • #1 / Nov 16, 2017 3:42pm

    Reinos

    74 posts

    Having this field for the shared form

    array(
         'title' => EMAIL_FORM_MAP.'_form_name',
         'attrs' => array('class'=> 'email_form_name'),
         'fields' => array(
          'name' => array(
           'type' => 'text',
           'value' => $form->name,
           'required' => TRUE
          )
         )
        ),
    

    this will output the give class and the require class without a space on the fieldset email_form_labelfieldset-required

    Simple fix, in file system/ee/EllisLab/ExpressionEngine/View/_shared/form/fieldset.php on line 32 add a extra space at the beginning of the require class

    $fieldset_classes .= ' fieldset-required';
    
  • #2 / Nov 16, 2017 3:44pm

    Kevin Cupp's avatar

    Kevin Cupp

    727 posts

    Good call, sorry about that, will fix!

ExpressionEngine News

#eecms, #events, #releases