Commit Graph

18 Commits

Author SHA1 Message Date
Sara Arjona 3dbb8dc598 MDL-60789 workshop: Check title submission maxlength 2017-11-14 08:52:31 +01:00
Juan Leyva 4c776cae2d MDL-59243 mod_workshop: Move submission creation to API 2017-09-06 13:57:11 +02:00
David Mudrák 0fa2b2ee88 MDL-59544 workshop: Drop the custom validation of allowed file types
Now that the validation is provided directly by the filemanager, we do
not need to do the same here.

Note that existing Behat tests are left untouched to make sure there is
no regression.
2017-07-14 20:38:55 +02:00
David Mudrák 5a0865a1b1 MDL-56486 workshop: Use filetypes utility class to check submitted files 2017-07-06 09:49:04 +02:00
Danny Jung 36a7651de2 MDL-59073 Workshop: Prevent submission without content or file 2017-06-22 14:03:28 -07:00
David Mudrák 996f7e8228 MDL-50794 workshop: Improve the file type restricting implementation
This is basically a clean up and what I think improved version of the
original Mahmoud's patch.

The actual checking for allowed file extensions has been re-implemented
and is now covered by unit tests. The list of allowed extensions is now
also assed to the filemanager element's accepted_types option to prevent
picking other files (we still need the in-place validation though). The
form validation is simplified a bit. The custom validation of file size
introduced in the previous patch has been removed as not related to this
issue (also I believe it should not be done at this level).
2016-02-25 18:03:18 +01:00
M Kassaei 1a282212c1 MDL-50794 workshop: Allow restricting submitted file types
It was reported at the Open University that there have been some
problems with the formats of files submitted by students. Not all
students completed their outlines as a Word .doc (despite this being the
format of the template provided). Some formats (e.g. .pages) couldn’t be
translated by some of the reviewing students. Therefore, they were
unable to provide a review and the submitting students not receiving any
comments.

This patch allows the teacher to define list of allowed file types that
can be attached to submitted work and/or overall feedback in the
workshop.
2016-02-25 18:03:18 +01:00
Sam Hemelryk 5cdcfcb988 MDL-44183 mod_workshop: unified @package use 2014-02-21 08:33:40 +13:00
Rossiani Wijaya 167b2c3d1e MDL-39081 workshop mod: fixed missing setType error 2013-04-15 15:42:22 +08:00
David Mudrak 65601f04a3 MDL-21249 workshop and its subplugins: fixing phpdocs @package and @subpackage 2010-09-30 14:44:33 +00:00
Sam Hemelryk 090417c109 workshop MDL-24046 Fixed SQL error in workshop submission validation 2010-09-02 03:22:46 +00:00
David Mudrak 2e7bd6c286 MDL-23709 Added more checks to prevent multiply submissions per user 2010-08-17 13:31:53 +00:00
David Mudrak 67cd00ba5b Refactor submission.php a bit to prepare for feedback form 2010-01-04 18:23:08 +00:00
David Mudrak c1e883bb04 Display "Edit submission" button at submission page 2010-01-04 17:50:03 +00:00
David Mudrak 0dc47fb913 MDL-19941 Submission attachments and embedded files draft support
Plus some cleaning up here and there
2010-01-04 17:48:20 +00:00
David Mudrak 53fad4b90c MDL-19870 Initial work on random allocator
Initial sketches of random allocator. Refactoring of the rest of the
module here and there. Also, this commit removes trailing whitespace and
running empty lines.
2010-01-04 17:47:09 +00:00
David Mudrak 127032fe3d Some plays with submission, to do 2010-01-04 17:42:37 +00:00
David Mudrak 33e4dea627 Initial draft of submission support 2010-01-04 17:38:29 +00:00