Skip to content

Commit

Permalink
Dev: Fixed issue : good link for download individual file in browse r…
Browse files Browse the repository at this point in the history
…esponse
  • Loading branch information
Shnoulle committed Apr 10, 2015
1 parent d93e9f2 commit 3a1673f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion application/controllers/admin/responses.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,10 @@ public function view($iSurveyID, $iId, $sBrowseLang = '')
if ($metadata === "size")
$answervalue = rawurldecode(((int) ($phparray[$index][$metadata])) . " KB");
else if ($metadata === "name")
$answervalue = CHtml::link($oPurifier->purify(rawurldecode($phparray[$index][$metadata])), $this->getController()->createUrl("/admin/responses/sa/browse/fieldname/{$fnames[$i][0]}/id/{$iId}/surveyid/{$iSurveyID}",array('downloadindividualfile'=>$phparray[$index][$metadata])));
$answervalue = CHtml::link(
$oPurifier->purify(rawurldecode($phparray[$index][$metadata])),
$this->getController()->createUrl("/admin/responses",array("sa"=>"actionDownloadfile","surveyid"=>$surveyid,"iResponseId"=>$iId,"sFileName"=>$phparray[$index][$metadata]))
);
else
$answervalue = rawurldecode($phparray[$index][$metadata]);
}
Expand Down

0 comments on commit 3a1673f

Please sign in to comment.