Skip to content

Commit

Permalink
Fixed issue #15987: Move surveys from group A to group B now shows co…
Browse files Browse the repository at this point in the history
…rrect message "success" when saving was successful
  • Loading branch information
Trischi80 authored and olleharstedt committed Mar 30, 2020
1 parent c996c91 commit 0dc6ca9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/controllers/admin/surveyadmin.php
Expand Up @@ -365,7 +365,8 @@ public function changeMultipleSurveyGroup()
foreach ($aSIDs as $iSurveyID){
$oSurvey = Survey::model()->findByPk($iSurveyID);
$oSurvey->gsid = $iSurveyGroupId;
$aResults[$iSurveyID] = $oSurvey->save();
$aResults[$iSurveyID]['title'] = $oSurvey->correct_relation_defaultlanguage->surveyls_title;
$aResults[$iSurveyID]['result']= $oSurvey->save();
}

Yii::app()->getController()->renderPartial('ext.admin.survey.ListSurveysWidget.views.massive_actions._action_results', array('aResults'=>$aResults,'successLabel'=>gT("Success")));
Expand Down
Expand Up @@ -4,6 +4,8 @@
/**
* This view display the result of delete multiple action. It's rendered via ajax for the confirmation modal in survey list
*
* it's also used for saving "change survey group" result (not only delete multiple action) ...
*
* @var $aResults The array containing the result of each survey deletion
*/
?>
Expand Down

0 comments on commit 0dc6ca9

Please sign in to comment.