Commit Graph

520 Commits

Author SHA1 Message Date
Eloy Lafuente (stronk7) a2f5969b3d MDL-29564 Assignment: whitespace fix 2011-10-10 13:10:31 +02:00
Stephen Bourget d783eff54b MDL-29564 Assignment: Fixed a fatal error caused by a missing include 2011-10-10 11:54:39 +13:00
David Mudrak f5edf4eba4 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
2011-10-03 11:15:17 +02:00
David Mudrak 490057db33 MDL-27857 Assignment does not use form tag to render portfolio export control widget
When this code was used as a part of the grading screen, the default
PORTFOLIO_ADD_FULL_FORM widget led to nested form elements. This patch replaces
the form widget with a plain text link that can be embedded safely.

Backported from MOODLE_21_STABLE with a conflict resolved in mod/assignment/renderer.php
2011-10-03 10:26:01 +02:00
Henning Bostelmann 62da28c64d MDL-25872 View assignment submissions: show only students, not teachers
Fixing incorrect capability reference mod/assignment:view to ...:submit
2011-08-26 17:34:42 +01:00
Rajesh Taneja 88a7dcab1e MDL-27896 context - Fixed editor context to observe filter status 2011-08-12 16:51:21 +08:00
Rossiani Wijaya 0a6604e525 MDL-27555 assignment module: remove 'submitted' option from optional setting for offline assignment type. 2011-07-05 14:39:59 +08:00
Andrew Davis (andyjdavis) 3c18677ad1 MDL-28023_assignment_jabber assignment: added context url to improve the jabber notifications 2011-06-27 11:11:34 +08:00
Andrew Davis (andyjdavis) 1a199937f0 MDL-28023 assignment: assignment wasnt supplying all the data necessary to produce a meaningful jabber notification 2011-06-27 11:11:19 +08:00
Marina Glancy d65a2b2262 MDL-26430 fixed appearance of one html form within another 2011-06-10 13:15:13 +08:00
Sam Hemelryk f2855813c7 MDL-27638 Removed buggy status line from query as it is being calculated in php anyway 2011-05-31 17:03:17 +08:00
Sam Hemelryk c7d4a92ccf Merge branch 'MDL-27161_m20' of git://github.com/rwijaya/moodle.git 2011-05-16 12:32:12 +08:00
Rossiani Wijaya 6ef4ef1ee5 MDL-27161: fixed optional setting for 'require grading' to prevent page lock out 2011-05-12 16:53:55 +08:00
David Mudrak 29cbe43189 MDL-13481 Strings fullname and shortname are now deprecated
This is a final cleanup commit of fullname and shortname issue. All
places where these strings were detected yet have been replaced with
proper fullnamecourse or fullnameuser or some other context specific
string.

AMOS BEGIN
 CPY [fullname,core],[outcomefullname,core_grades]
 CPY [shortname,core],[outcomeshortname,core_grades]
 CPY [name,core],[rolefullname,core_role]
 CPY [shortname,core],[roleshortname,core_role]
AMOS END
2011-02-28 09:42:50 +01:00
Aparup Banerjee d042ff06b3 assignment MDL-26532 fixed regression in assignment_cron() while processing messaging. 2011-02-21 15:43:30 +08:00
Eloy Lafuente (stronk7) 6b1b1d0339 MDL-25708 recordsets - assignment and data modules 2011-01-25 19:59:00 +01:00
Eloy Lafuente 0f66acede0 MDL-22135 - logs restore, course and activities + cleanup 2010-11-11 19:46:04 +00:00
Aparup Banerjee 6217809c8c assignment MDL-24694 added contexturl and contexturlname properties to email_teachers() message object. 2010-10-26 09:04:12 +00:00
Aparup Banerjee 39e171ac93 assignment MDL-24694
- added message provider to manage assignment's messaging
- user_preferences.name length changed form 50 to 255 due to long messaging preference names.
2010-10-26 06:46:01 +00:00
Aparup Banerjee 6a41c6fe3a assignment MDL-24694 added time of update to assignment updates email notification 2010-10-20 03:02:48 +00:00
Aparup Banerjee 192bcd76da assignment MDL-24710 added component and name properties to Event object required by messaging framework. 2010-10-19 07:28:42 +00:00
Dan Marsden 44729427ab Plagiarism API MDL-13680 move update_status call untill after print header so it can also print to page if required. 2010-10-14 21:40:04 +00:00
Aparup Banerjee 9d1354b70d assignment MDL-24469 merged changes to head. 2010-10-11 08:27:50 +00:00
Petr Skoda 6bdfef5da9 MDL-24321 switching to standard stdClass() 2010-09-21 08:54:01 +00:00
Petr Skoda 39790bd805 MDL-24321 switching to stdClass in /mod/ 2010-09-21 08:37:36 +00:00
Dan Marsden bce59524ce Plagiarism API MDL-13680 add plagiarism support for user submitted files - currently only added to single and advanced Assignment types - other modules to come in future. 2010-09-20 07:32:31 +00:00
Aparup Banerjee 5eca3d757e assignment MDL-24158 fixed call to get_plugin_list() which was causing a course reset to not clear assignment submissions. 2010-09-20 01:42:28 +00:00
Petr Skoda 91421f3ead a few spelling fixes 2010-09-18 12:07:01 +00:00
Petr Skoda 6b1564a866 improved defines coding style 2010-09-18 11:57:06 +00:00
Sam Hemelryk c7bb34b626 mod-assignment MDL-23848 Merged to head: students can now view previously submit assignments if they no longer have the submit capability. 2010-09-17 02:52:24 +00:00
Petr Skoda 0f21a964a5 MDL-24079 fixing recent regressions caused by api changes in tablelib; sorry I did not find the problem earlier 2010-09-05 12:35:51 +00:00
Petr Skoda f685e83030 MDL-14679 fixed remaining old style set_field()s 2010-09-03 18:14:55 +00:00
Petr Skoda 9d97f08e99 MDL-14679 fixed multiple old style insert_record calls, we throw exceptions now from DML 2010-09-03 16:26:04 +00:00
Aparup Banerjee 2d2746753b assignment mdl-24001 fixed toggling the 'revert to draft'/ 'no more submissions' button in a advanced upload assignment grading form loses editing data. 2010-08-31 07:55:12 +00:00
Aparup Banerjee 291ee13470 assignment MDL-23820 improved grading pages for file type assignments.
- uploadsingle response now uses file manager instead of file picker.
 - both uploadsingle and advancedupload assignment types have their grading pages with response file management in line (not a separate page).
 - bit of a css issue YUI's tree view rendering (a table) within a table that had borders is fixed.
2010-08-30 02:58:57 +00:00
Petr Skoda c0c757120d MDL-23984 removing unnecessary temp dir when exporting all online assignments, fixing missing text_format 2010-08-29 16:54:03 +00:00
Rossiani Wijaya de75c481dc MDL-14238 - removing whitespaces. 2010-08-23 02:32:24 +00:00
Rossiani Wijaya fdb797adcf MDL-14238 - add filter to grade assignment. 2010-08-20 08:00:54 +00:00
Aparup Banerjee de3c70fc72 assignment MDL-23820 removing the extra format html field. 2010-08-17 02:43:47 +00:00
Aparup Banerjee 1a905dbe60 assignment MDL-23820 removing the extra format html field. 2010-08-16 07:06:15 +00:00
Petr Skoda 7efcb7358f MDL-23726 fixed phpdocs - credit goes to Henning Bostelmann 2010-08-09 16:14:52 +00:00
Aparup Banerjee b5e1ffe456 assignment MDL-23684 renamed a variable causing confusion 2010-08-06 03:49:11 +00:00
Aparup Banerjee 8efd9deb32 assignment MDL-23680 fixed upload single not displaying response file to student. 2010-08-06 03:32:11 +00:00
Aparup Banerjee 437239d191 assignment MDL-22609 reverting to userid as print_user_files is updated to lookup the submission. 2010-07-30 02:39:38 +00:00
Aparup Banerjee 96f3544025 assignment MDL-22609 notice when no submission yet - fixed. 2010-07-29 08:12:58 +00:00
aparup 31f56ef630 assignment MDL-22609 missed changes for changing file's itemid = submission->id rather than user->id 2010-07-27 08:13:30 +00:00
David Mudrak bf1da11afd NOMDL assignment recent activity: fixed missing properties needed for user avatar 2010-07-26 21:58:21 +00:00
David Mudrak 09d35ae38e NOMDL assignment: fixed recent activity report for separate groups mode
There were two typos here. The first one ($cm->userid) led to incorrect
groups list. But the second one ($interset) caused that the intersection
of the group lists was never used. I just spotted this during copy &
pasting into workshop 2.0
Also fixed the heading size to what other modules use.

Merged from 1.9
2010-07-26 21:29:20 +00:00
aparup cd0fe5a458 assignment MDL-22893 just changed a locally used class name. 2010-07-26 09:12:31 +00:00
aparup 2a576f94f7 assignment MDL-22893 revert and fixed displaying files with 'revert to draft' button.. 2010-07-26 03:23:37 +00:00