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

Forum: notifications should be sent if guests post messages

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 12.5
    • Fix Version/s: 12.5.4
    • Component/s: Forum tool
    • Labels:
      None

      Description

      When a guest posts a message in a forum a notification should be sent to the subscribers. This patch (suggestion from Stéphane) works for half a year now:

      diff --git a/src/main/java/org/olat/modules/fo/manager/ForumManager.java b/src/main/java/org/olat/modules/fo/manager/ForumManager.java
      --- a/src/main/java/org/olat/modules/fo/manager/ForumManager.java
      +++ b/src/main/java/org/olat/modules/fo/manager/ForumManager.java
      @@ -692,7 +692,7 @@
       	public List<Message> getNewMessageInfo(Long forumKey, Date latestRead) {
       		StringBuilder query = new StringBuilder();
       		query.append("select msg from fomessage as msg ")
      -		     .append(" inner join fetch msg.creator as creator")
      +		     .append(" left join fetch msg.creator as creator")
       		     .append(" where msg.forum.key=:forumKey and msg.lastModified>:latestRead order by msg.lastModified desc");
       
       		return dbInstance.getCurrentEntityManager()
      

        Attachments

          Activity

            People

            • Assignee:
              srosse Stéphane Rossé
              Reporter:
              stephan Stephan Clemenz
              Tester:
              Mandy Menzel
            • 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 - 30 minutes
                30m