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

The message after deleting an assign sub-plugin displays a wrong directory. [fix included]

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.6
    • Fix Version/s: None
    • Component/s: Assignment
    • Labels:
    • Affected Branches:
      MOODLE_26_STABLE

      Description

      Go to mod/assign/adminmanageplugins.php?subtype=assignsubmission
      Delete the "Comment" plugin.
      Confirm the execution.
      At the end you will get the message:
      All data associated with the plugin 'Submission comments' 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/comments
      that talks about the unexisting directory: /mod/assign/assignsubmission/comments

      The fix is trivial:
      change row 314 of assign/adminlib.php
      from
      $messageparams = array('name'=>$pluginname,
      'directory'=>('/mod/assign/' . $this->subtype . '/'.$plugin));
      to
      $shortsubtype = substr($this->subtype, strlen('assign'));
      $messageparams = array('name'=>$pluginname,
      'directory'=>('/mod/assign/' . $shortsubtype . '/'.$plugin));

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              daniss Daniele Cordella
              Participants:
              Component watchers:
              Damyon Wiese, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: