Skip to content

Commit

Permalink
Fixed issue #7305: Error when running a survey with regex validation …
Browse files Browse the repository at this point in the history
…on text fields and debug mode enabled
  • Loading branch information
c-schmitz committed Feb 15, 2013
1 parent 6d7884e commit 5291dd5
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions application/helpers/expressions/em_manager_helper.php
Expand Up @@ -2187,6 +2187,7 @@ public function _CreateSubQLevelRelevanceAndValidationEqns($onlyThisQseq=NULL)
$subqValidEqns = array();
foreach ($subqs as $sq) {
$sq_name = NULL;
$subqValidSelector=NULL;
$sgqa = substr($sq['jsVarName'],4);
switch ($type)
{
Expand Down Expand Up @@ -2226,13 +2227,6 @@ public function _CreateSubQLevelRelevanceAndValidationEqns($onlyThisQseq=NULL)
}
$subqValidSelector = $sq['jsVarName_on'];
break;
case 'N': //NUMERICAL QUESTION TYPE
case 'S': //SHORT FREE TEXT
case 'T': //LONG FREE TEXT
case 'U': //HUGE FREE TEXT
// $subqValidEqn = '(strlen('.$sq['varName'].'.NAOK)==0 || regexMatch("' . $preg . '", ' . $sq['varName'] . '.NAOK))';
// $subqValidSelector = 'question' . $questionNum . ' :input';
break;
default:
break;
}
Expand Down

0 comments on commit 5291dd5

Please sign in to comment.