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

Inline editing for title doesn't update timemodified field of module instance

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.0.2
    • Fix Version/s: None
    • Component/s: Course, Global search
    • Labels:
    • Affected Branches:
      MOODLE_30_STABLE

      Description

      Steps to reproduce;

      1. Create a page resource and add to a course
      2. Verify the timemodified field in db

        pm> select name, timemodified from mdl_page;
        +--------+----------------+
        | name   |   timemodified |
        |--------+----------------|
        | test   |     1456997512 |
        +--------+----------------+
        SELECT 1
        Time: 0.001s
        

      3. Use inline editing feature to rename the page from course page:
      4. Verify if timemodified has been updated

        pm> select name, timemodified from mdl_page;
        +---------+----------------+
        | name    |   timemodified |
        |---------+----------------|
        | test 33 |     1456997512 |
        +---------+----------------+
        SELECT 1
        Time: 0.001s
        pm> 
        

      EXPECTED RESULTS:
      Timemodified updated at same time as title updated

      ACTUAL RESULTS:
      Timemodified is left unmodified

      Further info - this will mean that activites are not reindexed when titles edited thius way in global search.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              poltawski Dan Poltawski
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: