Skip to content

Commit

Permalink
Dev Added sample survey testing all of Expression Manager's capabilities
Browse files Browse the repository at this point in the history
Dev It includes all question types and all types of relevance, validation, array_filter, question attributes parsed by EM, defaults, etc.

Dev Also a couple of small bug-fixes

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_dev_tms@11650 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
TMSWhite committed Dec 13, 2011
1 parent 69eed50 commit 47fa03f
Show file tree
Hide file tree
Showing 4 changed files with 17,655 additions and 4 deletions.
4 changes: 2 additions & 2 deletions classes/eval/ExpressionManager.php
Expand Up @@ -1549,7 +1549,7 @@ private function GetVarAttribute($name,$attr,$default)
$ansArray = $var['ansArray'];
if (is_null($ansArray))
{
$shown=$default;
$shown=$code;
}
else
{
Expand All @@ -1559,7 +1559,7 @@ private function GetVarAttribute($name,$attr,$default)
$answer = join('|',$answerInfo);
}
else {
$answer = $default;
$answer = $code;
}
$shown = $answer;
}
Expand Down
2 changes: 1 addition & 1 deletion classes/eval/LimeExpressionManager.php
Expand Up @@ -4948,7 +4948,7 @@ static public function ShowSurveyLogicFile($sid, $language=NULL, $gid=NULL, $qid
$ginfo = $LEM->gseq2info[$gseq];

$grelevance = '{' . (($ginfo['grelevance']=='') ? 1 : $ginfo['grelevance']) . '}';
$gtext = ((trim($ginfo['description']) != '') ? ' ' : $ginfo['description']);
$gtext = ((trim($ginfo['description']) == '') ? ' ' : $ginfo['description']);

$groupRow = "<tr class='LEMgroup'>"
. "<td>G-$gseq</td>"
Expand Down
2 changes: 1 addition & 1 deletion classes/eval/em_javascript.js
Expand Up @@ -262,7 +262,7 @@ function LEMval(alias)
case 'R': //RANKING STYLE
which_ans = '0~' + value;
if (typeof attr.answers[which_ans] === 'undefined') {
answer = '';
answer = value;
}
else {
answerParts = attr.answers[which_ans].split('|');
Expand Down

0 comments on commit 47fa03f

Please sign in to comment.