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

timemodified in mdl_book_chapters doesn't auto-update

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.4.6, 2.5.2
    • Component/s: Book
    • Labels:
    • Testing Instructions:
      Hide

      1. Create a new book module.
      Add an activity > Book
      2. Fill details for chapter.
      3. Save.
      4. Edit the title/content of the chapter.
      See the "timemodified" field of that chapter in mdl_book_chapters database table.

      Expected Result: timemodified > timecreated
      Actual Result: timemodified = timecreated

      Show
      1. Create a new book module. Add an activity > Book 2. Fill details for chapter. 3. Save. 4. Edit the title/content of the chapter. See the "timemodified" field of that chapter in mdl_book_chapters database table. Expected Result: timemodified > timecreated Actual Result: timemodified = timecreated
    • Affected Branches:
      MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE
    • Pull Master Branch:

      Description

      While updating certain chapters within a book module, I noticed that the timemodified field of those chapters and that book weren't being updated in the database's mdl_book_chapters and mdl_book tables respectively.

      I guess, if a chapter if updated, the timemodified fields of both the book and chapter should be updated.

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  9/Sep/13