Moodle

Deleting last page from Lesson produces an error

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.9.2
  • Fix Version/s: 1.9.3
  • Component/s: Lesson
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

Steps to reproduce
================

1. Create a new empty lesson
2. Add a single page
3. Remove the page

What happens
============

Error message:

Delete: next page not found
Stack trace:

  • line 1651 of lib/deprecatedlib.php: call to debugging()
  • line 27 of mod/lesson/action/delete.php: call to error()
  • line 55 of mod/lesson/lesson.php: call to include()

Activity

Hide
Chris Bertagne added a comment -

This is the patch for bug #MDL-16506.

Show
Chris Bertagne added a comment - This is the patch for bug #MDL-16506.
Hide
David Mudrak added a comment -

Fixed in CVS. Credit goes to Chris Bertagne for the patch provided. Thanks!

Show
David Mudrak added a comment - Fixed in CVS. Credit goes to Chris Bertagne for the patch provided. Thanks!
Hide
Anthony Borrow added a comment -

David - Thanks for taking a look at this and checking in the patch from Chris and the team of students at Strake Jesuit College Preparatory. I'm proud of their work and look forward to seeing even more patches. Peace - Anthony

Show
Anthony Borrow added a comment - David - Thanks for taking a look at this and checking in the patch from Chris and the team of students at Strake Jesuit College Preparatory. I'm proud of their work and look forward to seeing even more patches. Peace - Anthony
Hide
Petr Škoda (skodak) added a comment -

thanks, closing

Show
Petr Škoda (skodak) added a comment - thanks, closing

People

Vote (0)
Watch (3)

Dates

  • Created:
    Updated:
    Resolved: