Commit db6b528e authored by Chenu Denis's avatar Chenu Denis

[fix] Broke with anonimized survey

parent 80fb8571
......@@ -182,7 +182,7 @@ class ResponseExtended extends LSActiveRecord
if($this->id) {
$criteria->compare('id',$this->id,true);
}
if($this->token) {
if(self::$survey->anonymized != "Y" && $this->token) {
if(is_array($this->token)) {
$criteria->addInCondition('t.token',$this->token);
} else {
......@@ -340,7 +340,6 @@ class ResponseExtended extends LSActiveRecord
if($this->getHaveToken()) {
$aColumns = array_merge($aColumns,$this->getTokensColumns());
}
$allQuestionsColumns = $surveyColumnsInformation->allQuestionsColumns();
if(!empty($aFooter)) {
$allQuestionsColumns = array_map(function ($questionsColumn) use ($aFooter) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment