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

Duplicating activity on course page does not fire any event

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.4, 2.5, 2.6.3, 2.7, 2.8
    • Fix Version/s: 2.6.4, 2.7.1
    • Component/s: Course, Events API
    • Labels:
    • Testing Instructions:
      Hide
      1. For each of the following actions:-
        1. Create a new activity
        2. Create a new activity by using drag and drop (drop a scorm package on course)
        3. Duplicate an activity using JS
        4. Duplicate an activity with JS disabled
      2. Go to course log report and make sure you see an entry for "course module created" corresponding with details of the new activity that was created.
      3. Run unit tests under course/tests/courselib_test.php and make sure they pass
      Show
      For each of the following actions:- Create a new activity Create a new activity by using drag and drop (drop a scorm package on course) Duplicate an activity using JS Duplicate an activity with JS disabled Go to course log report and make sure you see an entry for "course module created" corresponding with details of the new activity that was created. Run unit tests under course/tests/courselib_test.php and make sure they pass
    • Affected Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Epic Link:
    • Pull Master Branch:
      MDL-39883-master
    • Story Points:
      13
    • Sprint:
      BACKEND Sprint 13

      Description

      I would like to see here a new event mod_duplicated. This way we could always inform whoever is hooked to the event what just happened.

      The change would imply small modification to the course/modduplicate.php

      mod_duplicated - int courseid, int cmid, int origcmid, text modulename

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ankit_frenz Ankit Agarwal
              Reporter:
              darko.miletic Darko Miletic
              Peer reviewer:
              Adrian Greeve
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              David Monllaó
              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:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/Jul/14