Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-1503

Export Attendance file corrupted if Manager's email not set

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.4
    • Fix Version/s: 1.9.5
    • Component/s: None
    • Labels:
      None
    • Environment:
      Mac OS X 10.4, PHP 5.2.5, MySQL 5.0.41
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      Steps to reproduce:
      1. Set facetoface_addchangemanageremail global setting to "No" in site admin > modules > activities > face-to-face
      2. Create a face-to-face (uncheck all send notice to manager boxes)
      3. Export attendance (Excel or OpenDocument format)

      What should happen:
      File contains face-to-face attendance details

      What actually happens:
      File corrupted. See attached file for example.

      Fix:
      Bug is caused by attempt to write an object property that has not been set. Attached patch (download-attendance.patch.txt) provides fix by checking property is set before writing.

        Attachments

          Activity

            People

            Assignee:
            francois Francois Marier
            Reporter:
            simoncoggins Simon Coggins
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              13/May/09