Commit 72dcc26b authored by Chenu Denis's avatar Chenu Denis

[fix] Follow filteredAdaptedExport

parent d09d7383
......@@ -334,7 +334,7 @@ class Responses
$aRelated[$code] = array();
foreach ($this->aRelatedExports[$extraSurveyId] as $export => $label) {
$options = isset($this->aRelatedExportsOptions[$extraSurveyId][$export]) ? $this->aRelatedExportsOptions[$extraSurveyId][$export] : array();
if (empty($this->responseIdsByRelated[$extraSurveyId]) && ( empty($options['alltotal']) || empty($options['totalforced']) ) ) {
if ( empty($this->responseIdsByRelated[$extraSurveyId]) && ( empty($options['alltotal']) || empty($options['totalforced']) ) ) {
$aRelated[$code][$export] = array();
continue;
}
......@@ -350,7 +350,7 @@ class Responses
$filteredExport->dataHeader = $this->dataHeader;
$filteredExport->responseIds = $this->responseIdsByRelated[$extraSurveyId];
if(empty($this->responseIdsByRelated[$extraSurveyId])) {
$filteredExport->responseIds = array();
$filteredExport->none = true;
}
/* Set the settings (and the compile) */
$questionCompile = \ExportResponseWithRelated\Utilities::getSurveyPluginSetting('filteredAdaptedExport',$extraSurveyId,'questionCompile');
......
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