Skip to content

Commit

Permalink
Fixed issue #9475: question validation tip not evaluated dynamically …
Browse files Browse the repository at this point in the history
…when questions are answered

Dev: using GetLastMoveResult(true) remove (partially) javascript array. This not needed
  • Loading branch information
Shnoulle committed Feb 4, 2015
1 parent de1c2fb commit 4bba2c4
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions application/helpers/qanda_helper.php
Expand Up @@ -3982,7 +3982,7 @@ function do_gender($ia)
function do_array_5point($ia)
{
global $thissurvey;
$aLastMoveResult=LimeExpressionManager::GetLastMoveResult(true);
$aLastMoveResult=LimeExpressionManager::GetLastMoveResult();
$aMandatoryViolationSubQ=($aLastMoveResult['mandViolation'] && $ia[6] == 'Y') ? explode("|",$aLastMoveResult['unansweredSQs']) : array();
$extraclass ="";

Expand Down Expand Up @@ -4153,7 +4153,7 @@ function do_array_5point($ia)
function do_array_10point($ia)
{
global $thissurvey;
$aLastMoveResult=LimeExpressionManager::GetLastMoveResult(true);
$aLastMoveResult=LimeExpressionManager::GetLastMoveResult();
$aMandatoryViolationSubQ=($aLastMoveResult['mandViolation'] && $ia[6] == 'Y') ? explode("|",$aLastMoveResult['unansweredSQs']) : array();
$extraclass ="";

Expand Down Expand Up @@ -4285,7 +4285,7 @@ function do_array_10point($ia)
function do_array_yesnouncertain($ia)
{
global $thissurvey;
$aLastMoveResult=LimeExpressionManager::GetLastMoveResult(true);
$aLastMoveResult=LimeExpressionManager::GetLastMoveResult();
$aMandatoryViolationSubQ=($aLastMoveResult['mandViolation'] && $ia[6] == 'Y') ? explode("|",$aLastMoveResult['unansweredSQs']) : array();
$extraclass ="";

Expand Down Expand Up @@ -4446,7 +4446,7 @@ function do_array_yesnouncertain($ia)
function do_array_increasesamedecrease($ia)
{
global $thissurvey;
$aLastMoveResult=LimeExpressionManager::GetLastMoveResult(true);
$aLastMoveResult=LimeExpressionManager::GetLastMoveResult();
$aMandatoryViolationSubQ=($aLastMoveResult['mandViolation'] && $ia[6] == 'Y') ? explode("|",$aLastMoveResult['unansweredSQs']) : array();
$extraclass ="";

Expand Down Expand Up @@ -4606,7 +4606,7 @@ function do_array_increasesamedecrease($ia)
function do_array($ia)
{
global $thissurvey;
$aLastMoveResult=LimeExpressionManager::GetLastMoveResult(true);
$aLastMoveResult=LimeExpressionManager::GetLastMoveResult();
$aMandatoryViolationSubQ=($aLastMoveResult['mandViolation'] && $ia[6] == 'Y') ? explode("|",$aLastMoveResult['unansweredSQs']) : array();
$repeatheadings = Yii::app()->getConfig("repeatheadings");
$minrepeatheadings = Yii::app()->getConfig("minrepeatheadings");
Expand Down Expand Up @@ -4953,7 +4953,7 @@ function do_array($ia)
function do_array_multitext($ia)
{
global $thissurvey;
$aLastMoveResult=LimeExpressionManager::GetLastMoveResult(true);
$aLastMoveResult=LimeExpressionManager::GetLastMoveResult();
$aMandatoryViolationSubQ=($aLastMoveResult['mandViolation'] && $ia[6] == 'Y') ? explode("|",$aLastMoveResult['unansweredSQs']) : array();
$repeatheadings = Yii::app()->getConfig("repeatheadings");
$minrepeatheadings = Yii::app()->getConfig("minrepeatheadings");
Expand Down Expand Up @@ -5338,7 +5338,7 @@ function do_array_multitext($ia)
function do_array_multiflexi($ia)
{
global $thissurvey;
$aLastMoveResult=LimeExpressionManager::GetLastMoveResult(true);
$aLastMoveResult=LimeExpressionManager::GetLastMoveResult();
$aMandatoryViolationSubQ=($aLastMoveResult['mandViolation'] && $ia[6] == 'Y') ? explode("|",$aLastMoveResult['unansweredSQs']) : array();
$repeatheadings = Yii::app()->getConfig("repeatheadings");
$minrepeatheadings = Yii::app()->getConfig("minrepeatheadings");
Expand Down Expand Up @@ -5712,7 +5712,7 @@ function do_array_multiflexi($ia)
// TMSW TODO - Can remove DB query by passing in answer list from EM
function do_arraycolumns($ia)
{
$aLastMoveResult=LimeExpressionManager::GetLastMoveResult(true);
$aLastMoveResult=LimeExpressionManager::GetLastMoveResult();
$aMandatoryViolationSubQ=($aLastMoveResult['mandViolation'] && $ia[6] == 'Y') ? explode("|",$aLastMoveResult['unansweredSQs']) : array();
$extraclass = "";
$checkconditionFunction = "checkconditions";
Expand Down Expand Up @@ -5864,7 +5864,7 @@ function do_array_dual($ia)
{

global $thissurvey;
$aLastMoveResult=LimeExpressionManager::GetLastMoveResult(true);
$aLastMoveResult=LimeExpressionManager::GetLastMoveResult();
$aMandatoryViolationSubQ=($aLastMoveResult['mandViolation'] && $ia[6] == 'Y') ? explode("|",$aLastMoveResult['unansweredSQs']) : array();
$repeatheadings = Yii::app()->getConfig("repeatheadings");
$minrepeatheadings = Yii::app()->getConfig("minrepeatheadings");
Expand Down

0 comments on commit 4bba2c4

Please sign in to comment.