Moodle
  1. Moodle
  2. MDL-31522

CLONE - Upload a single file assignment, students cannot upload a file as the button is not present

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.0.7, 2.1, 2.2
    • Fix Version/s: None
    • Component/s: Assignment (2.2)
    • Labels:
      None
    • Environment:
      LAMP
    • Database:
      MySQL
    • Testing Instructions:
      Hide

      1. Create a Upload a single file assignment in a course
      2. Access this Assignment as an administrator.
      3. View that the "Upload" button is not visible to any user.
      4. Switch role to student, and access the assignment. View that the "Upload" button is not visible.
      5. Login as a student enrolled in the course. View that the "Upload button is visible.

      Show
      1. Create a Upload a single file assignment in a course 2. Access this Assignment as an administrator. 3. View that the "Upload" button is not visible to any user. 4. Switch role to student, and access the assignment. View that the "Upload" button is not visible. 5. Login as a student enrolled in the course. View that the "Upload button is visible.
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
    • Rank:
      38072

      Description

      http://tracker.moodle.org/browse/MDLQA-1246

      I found the QA tracker that has tested the functionality in 2.0, 2.1, and 2.2, but I have not been unable to create a Single File Upload Assignment on our servers that allows for a user to upload an Assignment. The button is just not there. I was curious if this was our server setup as it appears this is not happening for other Moodle users. I viewed the source code, in hopes that it just might be a corrupt installation, for "<input type="submit" value="Upload a file">" but this code is not even present. I then checked the creation of this assignment on 4 production sites and a clean installation on our servers and all are missing the upload button when the assignment is created.

      I can provide the code from our git repos if it will help resolve what might be happening on our servers but I am, at this point, at a loss.

        Issue Links

          Activity

          Hide
          Mike Churchward added a comment -

          I could not re-open, so I cloned the issue...

          Further checking, there is something odd with privileges and that assignment type... If I access the assignment as an "admin", I cannot see the upload button, even though I have submit permissions. If use the "Switch role to" button, I likewise cannot see the button. If I access the activity as a student, I can see it. This can't be right.

          Show
          Mike Churchward added a comment - I could not re-open, so I cloned the issue... Further checking, there is something odd with privileges and that assignment type... If I access the assignment as an "admin", I cannot see the upload button, even though I have submit permissions. If use the "Switch role to" button, I likewise cannot see the button. If I access the activity as a student, I can see it. This can't be right.
          Hide
          Michael de Raadt added a comment -

          I'm going to close this issue and reopen the other as it has more details on it now.

          Show
          Michael de Raadt added a comment - I'm going to close this issue and reopen the other as it has more details on it now.

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: