Skip to content

Commit

Permalink
SAK-33268 fix gradebook item not able to be saved with counted=true w…
Browse files Browse the repository at this point in the history
…hen categories are enabled (sakaiproject#4719)
  • Loading branch information
payten authored and jonespm committed Aug 23, 2017
1 parent 023b771 commit 47fb5fd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,9 @@ protected void onUpdate(final AjaxRequestTarget target) {

if (this.businessService.categoriesAreEnabled()) {
this.counted.setEnabled(assignment.getCategoryId() != null);
this.counted.setModel(Model.of(false));
if (assignment.getCategoryId() == null) {
this.counted.setModelObject(false);
}
}

add(this.counted);
Expand Down

0 comments on commit 47fb5fd

Please sign in to comment.