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

Archiving tasks: coach comments should always been archived

    Details

      Description

      The comments of the coaches should always been archived, independently of the setting for user comments.

      This is the patch which enables that for XML archives:

      diff --git a/src/main/java/org/olat/course/archiver/ScoreAccountingHelper.java b/src/main/java/org/olat/course/archiver/ScoreAccountingHelper.java
      --- a/src/main/java/org/olat/course/archiver/ScoreAccountingHelper.java
      +++ b/src/main/java/org/olat/course/archiver/ScoreAccountingHelper.java
      @@ -591,14 +591,14 @@
       						} else {
       							dataRow.addCell(dataColCnt++, mi);
       						}
      +					}
       
      -						// Comments for tutors
      -						String coachComment = am.getNodeCoachComment(acnode, identity);
      -						if (coachComment != null) {
      -							dataRow.addCell(dataColCnt++, coachComment);
      -						} else {
      -							dataRow.addCell(dataColCnt++, mi);
      -						}
      +					// Always export comments for tutors
      +					String coachComment = am.getNodeCoachComment(acnode, identity);
      +					if (coachComment != null) {
      +						dataRow.addCell(dataColCnt++, coachComment);
      +					} else {
      +						dataRow.addCell(dataColCnt++, mi);
       					}
       				}
       			}
      

      For CSV exports it would be similar, but this type of export seems to be deprecated.

        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 - 1 hour, 40 minutes
                1h 40m