Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-1884

RS when changing description of learning resources

    XMLWordPrintable

    Details

      Description

      When changing the description of a learning resource other than a course, a RS occurs. This is because only course have a execution period. This patch solves the problem:

      diff --git a/src/main/java/org/olat/repository/ui/author/RepositoryEditDescriptionController.java b/src/main/java/org/olat/repository/ui/author/RepositoryEditDescriptionController.java
      --- a/src/main/java/org/olat/repository/ui/author/RepositoryEditDescriptionController.java
      +++ b/src/main/java/org/olat/repository/ui/author/RepositoryEditDescriptionController.java
      @@ -385,12 +385,14 @@
       		allOk &= validateTextElement(expenditureOfWork, 225);
       		allOk &= validateTextElement(authors, 2000);
       		
      -		publicDatesEl.clearError();
      -		if(publicDatesEl.isEnabled() && publicDatesEl.isVisible()) {
      -			if(!publicDatesEl.isOneSelected()) {
      -				publicDatesEl.setErrorKey("form.legende.mandatory", null);
      -				allOk &= false;
      -			}	
      +		if (publicDatesEl != null) {
      +			publicDatesEl.clearError();
      +			if(publicDatesEl.isEnabled() && publicDatesEl.isVisible()) {
      +				if(!publicDatesEl.isOneSelected()) {
      +					publicDatesEl.setErrorKey("form.legende.mandatory", null);
      +					allOk &= false;
      +				}	
      +			}
       		}
       
       		// Ok, passed all checks
      

        Attachments

          Activity

            People

            Assignee:
            srosse Stéphane Rossé
            Reporter:
            stephan Stephan Clemenz
            Votes:
            0 Vote for this issue
            Watchers:
            3 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 - 10 minutes
                10m