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

Trigger question_updated/question_created event only after all data saved to DB...

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.7, 3.7.4, 3.8.1
    • Fix Version/s: 3.7.5, 3.8.2
    • Component/s: Questions
    • Labels:

      Description

      In questiontypebase.php::question_type::save_question method, the triggering of those events (depending on new or updated question) is before all the DB is updated... Like type specific options and question version...

      IMHO it was better to trigger the events after all the data upd-to-date...

        Attachments

          Activity

            People

            Assignee:
            kepeter Peter Eliyahu Kornfeld
            Reporter:
            kepeter Peter Eliyahu Kornfeld
            Peer reviewer:
            Tim Hunt Tim Hunt
            Integrator:
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Tester:
            CiBoT CiBoT
            Participants:
            Component watchers:
            Tim Hunt, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              9/Mar/20

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 15 minutes
                15m