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

Book chapter cancel button error

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Create a course.
      2. In that course, add a Book resource.
      3. Enter a name for the Book resource and click "Save and display"
      4. On the Add new chapter form, click Cancel. W
      5. Confirm that you are sent back to the course page instead of being redirected right back to the same page again.
      Show
      Create a course. In that course, add a Book resource. Enter a name for the Book resource and click " Save and display " On the Add new chapter form, click Cancel. W Confirm that you are sent back to the course page instead of being redirected right back to the same page again.
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE, MOODLE_34_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-60115-Book-cancel-button-redirect-bug-master

      Description

      If you add a book resource, the first thing you have to do is add a chapter.

      In this step, if you hit cancel, the form doesn't returns an error (first chapter is mandatory in creating a book resource) and stays in the same page without informing you. If you are creating chapter 2 and above it works as expected.

      I have a patch which checks for first chapter and if you hit cancel, it returns to course view.

        Attachments

          Activity

            People

            Assignee:
            mbrow188 Michael Brown
            Reporter:
            xyulex Raúl Martínez
            Peer reviewer:
            Dan Bennett
            Integrator:
            Eloy Lafuente (stronk7)
            Tester:
            Anna Carissa Sadia
            Participants:
            Component watchers:
            David Jones, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              17/May/18

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m