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

Feedback files in Assign Mod with external repository

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.4.6, 3.4.7, 3.4.8, 3.5.3, 3.5.4, 3.5.5, 3.6, 3.6.1, 3.6.2, 3.6.3
    • Fix Version/s: None
    • Component/s: Assignment
    • Labels:
      None
    • Affected Branches:
      MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE

      Description

      Hi,

      I set up a google system account to create an external file repository on google drive.

      The Google Drive plugin is set up to store only the links (FILE_CONTROLLED_LINK - External).

      When the plugin is configured in this way, when evaluating an assignment, the teacher does not find the option to access the G-Drive repository to submit a file as feedback,

      To Reproduce:
      1) Set up OAuth 2 Services configuration;
      2) Set up a System Account;
      3) Set up Google Drive Plugin:
           supported files = external;
           default return type = external;
      4) An any course, add an Assigment;
      5) Grade any studant and click on Feedback files;

      Expected:
      1) Google Drive Repository displayed in File Picker.

       

      Possible solution:

      \mod\assign\feedback\locallib.php:70

      Modified the key 'return_types' and add the const 'FILE_CONTROLLED_LINK'.

          private function get_file_options() {
              global $COURSE;
              
              $fileoptions = array('subdirs'=>1,
                                   'maxbytes'=>$COURSE->maxbytes,
                                   'accepted_types'=>'*',
                                   'return_types'=>(FILE_INTERNAL | FILE_CONTROLLED_LINK));
              return $fileoptions;
          }

       

       

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: