Skip to content

Commit

Permalink
Fixed issue: Export printable Survey not working with massive action
Browse files Browse the repository at this point in the history
  • Loading branch information
eddylackmann committed Oct 28, 2019
1 parent 24c72c7 commit 212be23
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions application/controllers/admin/export.php
Expand Up @@ -1256,15 +1256,16 @@ private function _exportPrintableHtmls($iSurveyID, $readFile = true)
// set language back (get's changed in loop above)
Yii::app()->language = $siteLanguage;

$this->_addHeaders($fn, "application/zip", 0);
// if ($readFile) {
if ($readFile) {
$this->_addHeaders($fn, "application/zip", 0);
header('Content-Transfer-Encoding: binary');
header("Content-disposition: attachment; filename=\"".$fn."\"");
readfile($zipfile);
unlink($zipfile);
Yii::app()->end();
// }
//return $zipfile;
}

return $zipfile;

}

Expand Down

0 comments on commit 212be23

Please sign in to comment.