Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-57994

Number of announcements course setting always shows the default value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2 regressions, 3.2.1
    • Fix Version/s: 3.2.3
    • Component/s: Course
    • Labels:
    • Testing Instructions:
      Hide
      1. Create a Topics format course with the "Number of announcements" set to 3.
      2. Edit the course and check the "Number of announcements" field.
        • Confirm that the "Number of announcements" is still set to 3.
      3. Change the format of the course to a single-activity course, but do not save the course.
      4. Change the course format back to Topics and check the "Number of announcements" field.
        • Confirm that it still shows 3.
      5. Change the format of the course to a single-activity course. This time, save the course.
      6. Check the "newsitems" field of the DB entry of the course in the course table.
        • Confirm that it is set to 0.
      Show
      Create a Topics format course with the "Number of announcements" set to 3. Edit the course and check the " Number of announcements " field. Confirm that the " Number of announcements " is still set to 3. Change the format of the course to a single-activity course, but do not save the course. Change the course format back to Topics and check the " Number of announcements " field. Confirm that it still shows 3. Change the format of the course to a single-activity course. This time, save the course. Check the "newsitems" field of the DB entry of the course in the course table. Confirm that it is set to 0.
    • Affected Branches:
      MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE
    • Pull Master Branch:

      Description

      Go to "Edit course settings", change the "Number of announcements", press "Save and Display"
      Go to "Edit course settings" (again), the number of announcements shown is the default value and not the value chosen before.
      However the database value is changed.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  8/May/17