Skip to content

Commit

Permalink
Fixed issue #10516: Error with "view response details" and "edit this…
Browse files Browse the repository at this point in the history
… response"
  • Loading branch information
olleharstedt committed Feb 22, 2016
1 parent dffab75 commit 0dc2db2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/controllers/admin/responses.php
Expand Up @@ -795,13 +795,13 @@ public function getResponses_json($iSurveyID)
foreach ($dtresult as $row) {

// View detail icon
$action_html = '<a href="' . Yii::app()->createUrl("admin/responses/view/surveyid/$surveyid/id/{$row['id']}")
$action_html = '<a href="' . Yii::app()->createUrl("admin/responses/sa/view/surveyid/$surveyid/id/{$row['id']}")
. '"><span class="glyphicon glyphicon-list-alt text-success" title="'
. gT('View response details') . '"></span></a>';

// Edit icon
if (Permission::model()->hasSurveyPermission($iSurveyID,'responses','update')) {
$action_html .= "<a href='" . Yii::app()->createUrl("admin/dataentry/editdata/subaction/edit/surveyid/{$surveyid}/id/{$row['id']}") . "'>
$action_html .= "<a href='" . Yii::app()->createUrl("admin/dataentry/sa/editdata/subaction/edit/surveyid/{$surveyid}/id/{$row['id']}") . "'>
<span class='glyphicon glyphicon-pencil text-success' title='" . gT('Edit this response') . "'></span></a>";
}

Expand Down

0 comments on commit 0dc2db2

Please sign in to comment.