mirrored from git://git.moodle.org/moodle.git
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-31987 Assignment module: Assignment count submissions correctly.
For advanced upload assignment, store file count of each submission into assignment_submissions.numfiles When counting submissions, if the assignment is open and tracking drafts, only submissions which has send for marking are counted. Otherwise, submissions which has numfiles > 0 are counted. Also change a hardcoded 'submitted' to ASSIGNMENT_STATUS_SUBMITTED. This patch was originally written by: Sunner Sun <sunner@gmail.com>. I made some modifation to fixed count_real_submissions() query (ref: MDL-32207) in /mod/assignment/type/upload/assignment.class.php file
- Loading branch information
Rossiani Wijaya
committed
Jul 2, 2012
1 parent
1494f20
commit 45353da
Showing
3 changed files
with
49 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters