Skip to content

Commit

Permalink
Dev: adding gid information to beforeQuestionRender event
Browse files Browse the repository at this point in the history
Dev: #09500 child
  • Loading branch information
Shnoulle committed Mar 6, 2015
1 parent bd8cca2 commit ac475b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/helpers/SurveyRuntimeHelper.php
Expand Up @@ -1228,7 +1228,7 @@ public static function getQuestionReplacement($aQuestionQanda)

// Core value : not replaced
$aReplacement['QID']=$iQid;
$aReplacement['GID']=$aQuestionQanda[6];// Not sure for aleatory
$aReplacement['GID']=$aQuestionQanda[6];// Not sure for aleatory : it's the real gid or the updated gid ? We need original gid or updated gid ?
$aReplacement['SGQ']=$aQuestionQanda[7];
$aReplacement['AID']=isset($aQuestionQanda[0]['aid']) ? $aQuestionQanda[0]['aid'] : "" ;
$aReplacement['QUESTION_CODE']=$aReplacement['QUESTION_NUMBER']="";
Expand Down Expand Up @@ -1327,6 +1327,7 @@ public static function getQuestionReplacement($aQuestionQanda)
$event->set('type', $sType);
$event->set('code', $sCode);
$event->set('qid', $iQid);
$event->set('gid', $aReplacement['GID']);
// User text
$event->set('text', $aReplacement['QUESTION_TEXT']);
$event->set('questionhelp', $aReplacement['QUESTIONHELP']);
Expand Down

0 comments on commit ac475b8

Please sign in to comment.