Commit b7243a85 authored by Chenu Denis's avatar Chenu Denis

[fix] Completed by tokens must checkl reponse existence

parent 6de70d21
......@@ -7,7 +7,7 @@
* @copyright 2016 Advantage <>
* @license AGPL v3
* @version 4.1.0
* @version 4.1.1
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
......@@ -594,7 +594,7 @@ class quickStatAdminParticipationAndStat extends PluginBase
'completed'=>Token::model($iSurveyId)->count("$tokenCross=:tokenvalue AND completed!='N' AND completed<>''",array(":tokenvalue"=>$sTokenValue)),
'completed'=>Token::model($iSurveyId)->with('responses')->count("$tokenCross=:tokenvalue AND completed!='N' AND completed<>'' AND responses.submitdate IS NOT NULL",array(":tokenvalue"=>$sTokenValue)),
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