Skip to content

Commit d9678e9

Browse files
committed
MOBILE-1987 assign: Allow offline attachments if reopened
1 parent 4dbf77f commit d9678e9

File tree

1 file changed

+1
-1
lines changed
  • www/addons/mod/assign/controllers

1 file changed

+1
-1
lines changed

www/addons/mod/assign/controllers/edit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ angular.module('mm.addons.mod_assign')
8080
}
8181

8282
$scope.userSubmission = $mmaModAssign.getSubmissionObjectFromAttempt(assign, response.lastattempt);
83-
$scope.allowOffline = $scope.userSubmission.status == 'new';
83+
$scope.allowOffline = $scope.userSubmission.status == 'new' || $scope.userSubmission.status == 'reopened';
8484

8585
// Only show submission statement if we are editing our own submission.
8686
if (assign.requiresubmissionstatement && !assign.submissiondrafts && userId == $mmSite.getUserId()) {

0 commit comments

Comments
 (0)