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

timemodified in mdl_book_chapters doesn't auto-update

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.4.6, 2.5.2
    • 2.5
    • Book
    • MOODLE_25_STABLE
    • MOODLE_24_STABLE, MOODLE_25_STABLE
    • 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

      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.

            xan Prateek Sachan
            xan Prateek Sachan
            Aparup Banerjee Aparup Banerjee
            Damyon Wiese Damyon Wiese
            David Monllaó David Monllaó
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.