As reported by bdangelo at http://groups.drupal.org/node/6447#comment-64849:

In the instructor or admin role, uploading files, viewing them works well. The "return to gradebook" button doesn't work though clicking on the "save all" button saves the changes made (including the uploaded file) and returns the page to the main gradebook screen.

In student mode, the student can view and open the file uploaded by the instructor. Same issue with the "return to gradebook button." In addition, the student can upload a file and it initially appears in the gradebook. However, the file is not saved (even when "save all" is clicked) so that when either the student or instructor goes into the gradebook, the file isn't there.

CommentFileSizeAuthor
#1 382254_file_support_fix.diff1.82 KBMGN

Comments

MGN’s picture

Status: Active » Fixed
StatusFileSize
new1.82 KB

Eventually figured these out....Thanks to Barbara and Hiro for reporting these problems!

1. The failure to return to gradebook problem happened because the file was stored in $form['storage']. This has to be cleared before redirect will work. return to gradebook was working fine as long as a file had not been attached.

2. The file viewing problem occurs only when the student first attaches content. After a teacher attaches a file or saves a grade, file attachment works fine. The fix for this is to check to see if a grade entry exists in gradebookapi_grade and add, if not, add a null grade prior to saving the file.

The following patch fixes these problems and will be committed shortly.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.