Skip to content

Commit

Permalink
Dev: excluded expert statistics from close loop
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jan 22, 2016
1 parent 5d2561b commit baf298f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion application/controllers/admin/statistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ protected function _renderWrappedTemplate($sAction = 'export', $aViewUrls = arra
//App()->getClientScript()->registerScriptFile( App()->getAssetManager()->publish( $switch) );
App()->getClientScript()->registerScriptFile( $switch );

$aData['menu']['closeurl'] = Yii::app()->request->getUrlReferrer(Yii::app()->createUrl("/admin/survey/sa/view/surveyid/".$aData['surveyid']), array('simpleStatistics') );
$aData['menu']['closeurl'] = Yii::app()->request->getUrlReferrer(Yii::app()->createUrl("/admin/survey/sa/view/surveyid/".$aData['surveyid']), array('simpleStatistics', 'admin/statistics/sa/index') );

$aData['display'] = array();
$aData['display']['menu_bars'] = false;
Expand Down
1 change: 0 additions & 1 deletion application/core/LSHttpRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public function getUrlReferrer($sAlternativeUrl=null, $aForbiddenWordsInUrl=arra
$referrer = parent::getUrlReferrer();
$baseReferrer = str_replace(Yii::app()->getBaseUrl(true), "", $referrer);
$baseRequestUri = str_replace(Yii::app()->getBaseUrl(), "", Yii::app()->request->requestUri);

$referrer = ($baseReferrer != $baseRequestUri)?$referrer:null;

// Checks if the alternative url should be used
Expand Down

0 comments on commit baf298f

Please sign in to comment.