Skip to content

Commit

Permalink
NOJIRA: update gb tool ID
Browse files Browse the repository at this point in the history
  • Loading branch information
bjones86 committed Aug 1, 2023
1 parent 1751205 commit 9a02fd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ private GradebookSetup getAssessmentSetup(ContentPackage contentPackage)
final GradebookSetup gradebookSetup = new GradebookSetup();
String context = getContext();
boolean isGradebookDefined = false;
try { isGradebookDefined = siteService.getSite(context).getToolForCommonId("sakai.grades") != null; }
try { isGradebookDefined = siteService.getSite(context).getToolForCommonId("sakai.gradebookng") != null; }
catch (IdUnusedException e) { /* No gradebook, ignore */ }

gradebookSetup.setGradebookDefined(isGradebookDefined);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ private GradebookSetup getAssessmentSetup( ContentPackage contentPackage )
String context = getContext();
final GradebookSetup gradebookSetup = new GradebookSetup();
boolean isGradebookDefined = false;
try { isGradebookDefined = siteService.getSite(context).getToolForCommonId("sakai.grades") != null; }
try { isGradebookDefined = siteService.getSite(context).getToolForCommonId("sakai.gradebookng") != null; }
catch (IdUnusedException e) { /* No gradebook, ignore */ }
gradebookSetup.setGradebookDefined( isGradebookDefined );
gradebookSetup.setContentPackage( contentPackage );
Expand Down

0 comments on commit 9a02fd9

Please sign in to comment.