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

Info messages: modification date is not stored in DB

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 11.4.2
    • Fix Version/s: 11.4.3
    • Component/s: None
    • Labels:
      None

      Description

      When an info message has been modified the modification date is not stored in the database. This patch fixes that:

      diff --git a/src/main/java/org/olat/commons/info/model/InfoMessageImpl.java b/src/main/java/org/olat/commons/info/model/InfoMessageImpl.java
      --- a/src/main/java/org/olat/commons/info/model/InfoMessageImpl.java
      +++ b/src/main/java/org/olat/commons/info/model/InfoMessageImpl.java
      @@ -70,7 +70,7 @@
       	@Column(name="creationdate", nullable=false, insertable=true, updatable=false)
       	private Date creationDate;
       	@Temporal(TemporalType.TIMESTAMP)
      -	@Column(name="modificationdate", nullable=true, insertable=true, updatable=false)
      +	@Column(name="modificationdate", nullable=true, insertable=true, updatable=true)
       	private Date modificationDate;
       	
       	@Column(name="title", nullable=true, insertable=true, updatable=true)
      

        Attachments

          Activity

            People

            Assignee:
            frentix Frentix
            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 - 15 minutes
                15m