Permalink
Browse files

Merge branch 'MDL-63210_master' of git://github.com/markn86/moodle

  • Loading branch information...
dmonllao committed Aug 27, 2018
2 parents 39d5bf0 + ce1db1f commit ed20d9dbe952f37c2046e4528ea7eb40b4a3f594
Showing with 4 additions and 5 deletions.
  1. +1 −1 lib/amd/build/ajax.min.js
  2. +3 −4 lib/amd/src/ajax.js

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -79,14 +79,13 @@ define(['jquery', 'core/config', 'core/log', 'core/url'], function($, config, Lo
}
// Something failed, reject the remaining promises.
if (exception !== null) {
// If the user isn't doing anything too important, redirect to the login page.
// Redirect to the login page.
if (exception.errorcode === "servicerequireslogin") {
window.location = URL.relativeUrl("/login/index.php");
} else {
for (; i < requests.length; i++) {
request = requests[i];
requests.forEach(function(request) {
request.deferred.reject(exception);
}
});
}
}
};

0 comments on commit ed20d9d

Please sign in to comment.