We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17c1e7e commit f749d29Copy full SHA for f749d29
www/addons/mod/assign/controllers/edit.js
@@ -137,7 +137,7 @@ angular.module('mm.addons.mod_assign')
137
// Function called when user wants to leave view without saving.
138
function leaveView() {
139
// Check that we're leaving the current view, since the user can navigate to other views from here.
140
- if ($ionicHistory.currentView() !== currentView) {
+ if ($ionicHistory.currentView() !== currentView || !$scope.userSubmission) {
141
// It's another view.
142
originalBackFunction();
143
return;
0 commit comments