From 2a39c0dd442dd5bfeab86e8b432a9d5e6531d4be Mon Sep 17 00:00:00 2001 From: magiclko Date: Fri, 16 Mar 2012 19:33:14 +0530 Subject: [PATCH] Fixed issue #05908: The system is unable to find the requested action "printanswers.php". Mostly fixed via http://git.io/5Zn_9g --- application/controllers/PrintanswersController.php | 4 ++-- application/helpers/SurveyRuntimeHelper.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/application/controllers/PrintanswersController.php b/application/controllers/PrintanswersController.php index 5bcedae9d61..c6ed6ffb314 100644 --- a/application/controllers/PrintanswersController.php +++ b/application/controllers/PrintanswersController.php @@ -132,11 +132,11 @@ function actionView($surveyid,$printableexport=FALSE) $printoutput = ''; if(Yii::app()->getConfig('usepdfexport') == 1) { - $printoutput .= "
\n
"; + $printoutput .= "
\n
"; } if($printableexport == 'pdf') { - require (Yii::app()->getConfig('rootdir').'/application/config/tcpdf_config_ci.php'); + require (Yii::app()->getConfig('rootdir').'/application/config/tcpdf.php'); Yii::import('application.libraries.admin.pdf', true); $pdf = new pdf(); $pdf->_config = $tcpdf; diff --git a/application/helpers/SurveyRuntimeHelper.php b/application/helpers/SurveyRuntimeHelper.php index bbe18fd74fc..8d07daf9e79 100644 --- a/application/helpers/SurveyRuntimeHelper.php +++ b/application/helpers/SurveyRuntimeHelper.php @@ -449,7 +449,7 @@ function run($surveyid,$args) { // Link to Print Answer Preview ********** if ($thissurvey['printanswers'] == 'Y') { - $url = Yii::app()->getController()->createUrl("printanswers/view/?surveyid={$surveyid}"); + $url = Yii::app()->getController()->createUrl("printanswers/view/surveyid/{$surveyid}"); $completed .= "

" . "" . $clang->gT("Print your answers.")