Commit 98483e71 authored by Chenu Denis's avatar Chenu Denis

[fix] Allow to set null condition

parent 2eaf473a
......@@ -66,8 +66,9 @@ class filteredExport
public $token = '';
/* var boolean */
public $completed = true;
/* var integer[] */
public $responseIds = array();
/* var null|integer[] */
public $responseIds = null;
/**
* var array[] extra options, current are
* alltotal => boolean : add a whole total line
......@@ -274,6 +275,8 @@ class filteredExport
}
if(!empty($this->responseIds)) {
$oCriteria->addInCondition("id",$this->responseIds);
} elseif(!is_null($this->responseIds)) {
$oCriteria->addCondition("0 = 1");
}
$ResponseModel = \Response::model($this->surveyId);
......
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