Skip to content

Commit

Permalink
Fixed issue #10522: Redirect loop between "add" and "edit" assessment
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Mar 9, 2016
1 parent f18dbca commit df9e73a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions application/core/Survey_Common_Action.php
Expand Up @@ -852,6 +852,7 @@ function _surveybar($aData)
{
$sAlternativeUrl = $aData['surveybar']['closebutton']['url'];
$aForbiddenWordsInUrl = isset($aData['surveybar']['closebutton']['forbidden'])?$aData['surveybar']['closebutton']['forbidden']:array();
$aForbiddenWordsInUrl[]='assessmentedit';
$aData['surveybar']['closebutton']['url'] = Yii::app()->request->getUrlReferrer( Yii::app()->createUrl($sAlternativeUrl), $aForbiddenWordsInUrl );
}

Expand Down
3 changes: 1 addition & 2 deletions application/views/surveys/publicSurveyList.php
@@ -1,5 +1,4 @@
<?php

$list = '<ul class="surveys-list">';
foreach($publicSurveys as $survey)
{
Expand All @@ -17,9 +16,9 @@
$list .= CHtml::closeTag('li');

}
$list .= "</ul>";
if (!empty($futureSurveys))
{
$list .= "</ul>";
$list .= "<div class=\"survey-list-heading\">". gT("Following survey(s) are not yet active but you can register for them.")."</div>";
$list .= '<ul class="surveys-list future-surveys-list">';
foreach($futureSurveys as $survey)
Expand Down

0 comments on commit df9e73a

Please sign in to comment.