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

Lesson: "Link to next activity" empty until Lesson has been saved

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.8, 2.8.6, 2.9
    • Fix Version/s: 2.8.8, 2.9.2
    • Component/s: Lesson
    • Labels:
    • Testing Instructions:
      Hide
      • Add a new Lesson activity to a course
      • Choose another activity in the "Link to next activity" dropdown (in the "Appearance" section)
      • Save the Lesson
      • Edit the Lesson's settings and confirm that:
        • The chosen "next activity" was saved
        • The Lesson which you are editing is not listed in the "Link to next activity" dropdown
      Show
      Add a new Lesson activity to a course Choose another activity in the "Link to next activity" dropdown (in the "Appearance" section) Save the Lesson Edit the Lesson's settings and confirm that: The chosen "next activity" was saved The Lesson which you are editing is not listed in the "Link to next activity" dropdown
    • Workaround:
      • Save the Lesson without specifying a "next activity"
      • Edit the Lesson immediately, choose the desired "next activity" and save the Lesson
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE, MOODLE_29_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-50699-master

      Description

      Due to a logic bug, the "Link to next activity" dropdown is empty (only contains the "None" option) until the Lesson has been saved.

      It currently only adds modules to the list if the Lesson's ID is not unset, and the module being added is not the Lesson being edited. This should be changed to add modules if the Lesson's ID is unset or the module being added is not the Lesson being edited, thereby allowing a "next activity" to be specified when initially creating the Lesson whilst still preventing the user from choosing the Lesson as its own next activity.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/Sep/15