From ac475b89bd3366c921c9d5037e055df21c5deb5c Mon Sep 17 00:00:00 2001 From: Denis Chenu Date: Fri, 6 Mar 2015 10:17:28 +0100 Subject: [PATCH] Dev: adding gid information to beforeQuestionRender event Dev: #09500 child --- application/helpers/SurveyRuntimeHelper.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/helpers/SurveyRuntimeHelper.php b/application/helpers/SurveyRuntimeHelper.php index b8191a6761d..ecb345bcb4a 100644 --- a/application/helpers/SurveyRuntimeHelper.php +++ b/application/helpers/SurveyRuntimeHelper.php @@ -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']=""; @@ -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']);