Skip to content

Commit

Permalink
New feture #08823: Ability to use {QCODE} before it's declared
Browse files Browse the repository at this point in the history
Dev: relevanceStatus is set OK
Dev: Condition with EM are managed good (but a survey without complete index can be submitted)
  • Loading branch information
Shnoulle committed Dec 19, 2014
1 parent 1057801 commit 9733fb7
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions application/helpers/expressions/em_core_helper.php
Expand Up @@ -590,14 +590,6 @@ private function RDP_EvaluateConstantVarOrFunction()
$result = array(NULL,$token[1],'NUMBER'); // was 0 instead of NULL
}
$this->RDP_StackPush($result);

// TODO - currently, will try to process value anyway, but want to show a potential error. Should it be a definitive error (e.g. prevent this behavior)?
$groupSeq = $this->GetVarAttribute($token[0],'gseq',-1);
if (($groupSeq != -1 && $this->groupSeq != -1) && ($groupSeq > $this->groupSeq))
{
$this->RDP_AddError(gT("Variable not declared until a later page"),$token);
return false;
}
return true;
}
else
Expand Down

0 comments on commit 9733fb7

Please sign in to comment.