Commit b244d3a9 authored by Chenu Denis's avatar Chenu Denis
Browse files

[fix] Doucle clear-all can broke

parent 3ddadd29
......@@ -5,7 +5,7 @@
* @author Denis Chenu <denis@sondages.pro>
* @copyright 2018-2021 Denis Chenu <http://www.sondages.pro>
* @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 General Public License as published by
......@@ -998,6 +998,9 @@ class reloadAnyResponse extends PluginBase
private function actionOnClearAll($surveyId)
{
$srid = \reloadAnyResponse\Utilities::getCurrentSrid($surveyId);
if(empty($srid)) {
return;
}
\reloadAnyResponse\models\surveySession::model()->deleteByPk(array('sid'=>$surveyId,'srid'=>$srid));
$reloadedSrid = App()->getRequest()->getPost('reloadAnyResponseSrid');
......
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