Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 11.1.1
    • Fix Version/s: 11.1.2
    • Component/s: Course
    • Labels:
      None

      Description

      After a course has been deleted, trying to reload the repository entry results in a RS:

      cause::org.olat.core.logging.AssertException: No resourceable ID found. -> at org.olat.course.CourseFactory.loadCourse(CourseFactory.java:257) at org.olat.course.run.CourseRuntimeController.loadRepositoryEntry(CourseRuntimeController.java:277) at org.olat.course.run.CourseRuntimeController.event(CourseRuntimeController.java:830) at 
      

      A quick fix is

      diff --git a/src/main/java/org/olat/course/run/CourseRuntimeController.java b/src/main/java/org/olat/course/run/CourseRuntimeController.java
      --- a/src/main/java/org/olat/course/run/CourseRuntimeController.java
      +++ b/src/main/java/org/olat/course/run/CourseRuntimeController.java
      @@ -827,7 +827,7 @@
       				processBusinessGroupModifiedEvent((BusinessGroupModifiedEvent)event);
       			}
       		} else if (lifeCycleChangeCtr == source) {
      -			loadRepositoryEntry();
      +			if (!event.getCommand().equals("deleted")) loadRepositoryEntry();
       		} else if (currentToolCtr == source) {
       			if (event == Event.DONE_EVENT) {
       				// special check for editor
      

      Perhaps there exist a more elegant way...

        Attachments

          Activity

            People

            • Assignee:
              srosse Stéphane Rossé
              Reporter:
              stephan Stephan Clemenz
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m