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

Assign: Plugin Deleted tells users to delete a non-existant path

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.4
    • Assignment
    • MOODLE_24_STABLE
    • Hide

      1. Install an assignment submission (or assignment feedback) plugin - for example: https://moodle.org/plugins/view.php?plugin=assignsubmission_pdf
      2. Go to Settings -> Plugins -> Assignment plugins -> Submission plugins -> Manage submission plugins
      3. Delete the installed plugin
      4. Verify that the path to be deleted is the actual path

      Show
      1. Install an assignment submission (or assignment feedback) plugin - for example: https://moodle.org/plugins/view.php?plugin=assignsubmission_pdf 2. Go to Settings -> Plugins -> Assignment plugins -> Submission plugins -> Manage submission plugins 3. Delete the installed plugin 4. Verify that the path to be deleted is the actual path

      I was testing the pdf submission plugin and then removed it and received a message that:

      All data associated with the plugin 'PDF submission' has been deleted from the database. To prevent the plugin re-installing itself, you should now delete this directory from your server: /mod/assign/assignsubmission/pdf

      The erroneous code is located in mod/assign/adminlib.php in the view_plugin_deleted function:

      echo $OUTPUT->notification(get_string('plugindeletefiles', 'moodle', array('name'=>get_string('pluginname', $this->subtype . '_' . $plugin), 'directory'=>('/mod/assign/' . $this->subtype . '/'.$plugin))));

      The assumption is that the subtype (assignsubmission) is going to be the directory path; however, the actual path is: mod/assign/submission/pdf.

      Peace - Anthony

        1. assign_submission_delete.png
          102 kB
          Anthony Borrow
        2. assignsubmission_delete_patched.png
          114 kB
          Anthony Borrow

            aborrow Anthony Borrow
            aborrow Anthony Borrow
            Damyon Wiese Damyon Wiese
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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