[AMOS commit] MDL-27857 Export to portfolio support in the assignment module improved Committed into Git: 2011-10-03 09:15 UTC

[AMOS commit] MDL-27857 Export to portfolio support in the assignment module improved Committed into Git: 2011-10-03 09:15 UTC

- bot AMOS の投稿
返信数: 0
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.

Backported from MOODLE_21_STABLE, resolved conflicts in:

mod/assignment/lib.php
mod/assignment/renderer.php


http://git.moodle.org/gw?p=moodle.git;a=commit;h=f5edf4eba46e1bb9e51bdde43545ad3c1789ae75
http://github.com/moodle/moodle/commit/f5edf4eba46e1bb9e51bdde43545ad3c1789ae75

+ 2.0 en [invalidassignment,mod_assignment]
+ 2.0 en [invalidfileandsubmissionid,mod_assignment]
+ 2.0 en [invalidid,mod_assignment]
+ 2.0 en [invalidsubmissionid,mod_assignment]
+ 2.0 en [invalidtype,mod_assignment]