I have a couple of hidden text fields and they were not being checked for min/max values. After digging around, I found out that the following code(line 389 to 394):

  if (in_array($form['#form_id'], $include_hidden)) {
    $setting['clientsideValidation']['forms'][$form_id]['includeHidden'] = TRUE;
  }
  elseif ($definedsettings['include_hidden']['include_hidden']) {
    $setting['clientsideValidation']['forms'][$form_id]['includeHidden'] = TRUE;
  }

should be changed to

  if (in_array($form['#form_id'], $include_hidden)) {
    $settings['clientsideValidation']['forms'][$form_id]['includeHidden'] = TRUE;
  }
  elseif ($definedsettings['include_hidden']['include_hidden']) {
    $settings['clientsideValidation']['forms'][$form_id]['includeHidden'] = TRUE;
  }

Please let me know if this is the correct solution

Thanks

Comments

attiks’s picture

they look the same to me, our my eyes are getting tired ;-)

jelle_s’s picture

@attiks

$setting

vs

$settings

;-)

jelle_s’s picture

Status: Active » Fixed

Fixed in latest dev

attiks’s picture

@qasimzee nice catch

Status: Fixed » Closed (fixed)

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