Author: David Mudrak
MDL-27857 Export to portfolio support in the assignment module improved
Portfolio API code in the assignment module expected that the current
user is the author of the submission. Therefore the "Export to
portfolio" button did not work when the submission was viewed by a
teacher (eg at the page with the list of all submissions in the Advanced
upload assignment).
This patch introduces a new callback argument 'submissionid' that holds
explicit ID of the submission the export deals with. With it available,
we do not need to expect the current user is the author of the
submission.
The patch also cleans some strings used for portfolio callback
exceptions.
http://git.moodle.org/gw?p=moodle.git;a=commit;h=59c8be2362749a168719ab025993de551b66e9cb
http://github.com/moodle/moodle/commit/59c8be2362749a168719ab025993de551b66e9cb
+ 2.1 en [invalidassignment,mod_assignment]
+ 2.1 en [invalidfileandsubmissionid,mod_assignment]
+ 2.1 en [invalidid,mod_assignment]
+ 2.1 en [invalidsubmissionid,mod_assignment]
+ 2.1 en [invalidtype,mod_assignment]
[AMOS commit] MDL-27857 Export to portfolio support in the assignment module improved Committed into Git: 2011-09-28 00:02 UTC
av AMOS bot -
Galle vástádusa: 0