Commit Graph

967 Commits

Author SHA1 Message Date
Dan Marsden 5c5dbec7de MDL-28559 - hide send for marking button from people that are enrolled but don't have capability to submit files - displays the same way as teachers/admins - keeps ability to display previously submitted files if they exist 2011-10-26 10:59:53 +13:00
Stephen Bourget b629bbec9f MDL-29698 Assignment: Fix broken logentry 2011-10-16 18:25:45 +02:00
Eloy Lafuente (stronk7) a2f5969b3d MDL-29564 Assignment: whitespace fix 2011-10-10 13:10:31 +02:00
Sam Hemelryk 787fc502ad Merge branch 'MDL-16553-20' of git://github.com/bostelm/moodle into MOODLE_20_STABLE 2011-10-10 17:57:18 +13:00
Stephen Bourget d783eff54b MDL-29564 Assignment: Fixed a fatal error caused by a missing include 2011-10-10 11:54:39 +13:00
Henning Bostelmann 5458ff4d23 MDL-16553 Assignment, student view: show response files when no grade available 2011-10-07 23:23:27 +01: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
Marina Glancy e29521960d MDL-27754 fixed typo in language string 2011-08-02 08:51:24 +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 32af9814f1 MDL-27161 Improved the 2 new strings in assignment 2011-05-18 17:30:06 +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
Nadav Kavalerchik a7e920fbfb CSS MDL-26013 Fixed several display bugs when using right to left languages 2011-04-14 15:59:03 +08:00
Petr Skoda 934fa3ed6c MDL-27094 fix incorrect assignment form validation method name
Credit goes to H. Hanna
2011-04-10 21:01:53 +02:00
Petr Skoda 431ac39634 MDL-26623 fix file permissions
The permissions are now going to be verified as part of the weekly release process.
2011-03-01 12:26:49 +01: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
Petr Skoda 99d19c13ae MDL-25855 some more missing filelib includes 2011-01-23 18:34:41 +01:00
David Mudrak 7e514cd768 MDL-25619 portfolio: exported HTML output can not be cleaned 2010-12-08 23:20:04 +00:00
Helen Foster 5735fefc93 MDL-21250 capital letters removal 2010-11-29 15:49:58 +00:00
David Mudrak b0f5d070e7 MDL-23978 portfolio: do not cleanup images with portfolio URI scheme
The problem was in the order of the content preparing. Now when the
filters are always skipped (they have to) we must always run
format_text() first. That will prepare nice HTML in which we just
rewrite the portfolio URIs.
Note that we are still calling clean_text() so that we do not export
malicious code for portfolios like File download. In the future, this
may be changed, made format specific or even per-export configurable.
As a side product of the patch, I have re-enabled online assignment
portfolio export and switched $options->para to false consistently.
2010-11-15 22:59:06 +00:00
Eloy Lafuente 0f66acede0 MDL-22135 - logs restore, course and activities + cleanup 2010-11-11 19:46:04 +00:00
David Mudrak d8c4a74e29 Text filters can not be applied on the content exported to the portfolio
Filters can replace text with images (smilies, temporary TeX images
etc.), links to glossaries or databases or embedded media players.
Therefore it is important to disable filter processing during portfolio
export.
2010-11-11 18:47:57 +00:00
Sam Marshall 702a206cd3 Unit tests MDL-24993 Disable obsolete portfolio tests until such time as somebody can fix them 2010-11-09 17:09:13 +00:00
Sam Hemelryk 367a75fae4 themes lib MDL-24895 Multiple fixes to better handle overflow.
Major tasks undertaken in this patch:
* New format_text argument, overflowdiv.
* New page layout Report.
* Review of all format_text calls.
* Added support for the report layout to all themes.
* Changed forum post display from tables to divs.
2010-11-05 02:53:47 +00:00
Dan Marsden a211a40c75 Assignment MDL-24948 fix depreceated calls to get group info 2010-11-02 01:38:56 +00:00
Sam Marshall bf81b16824 Unit tests MDL-24981 Fixed portfolio unit test so it at least runs (albeit with 23 exceptions and only 2 passes) 2010-11-01 18:00:57 +00:00
Aparup Banerjee c65c5935c4 assignment MDL-24694 lang file string change. 2010-10-27 03:10:34 +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
Petr Skoda 346c5887b1 MDL-24751 using new memory constants 2010-10-19 10:13:15 +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
Dongsheng Cai 047bce2fe8 MDL-24382 uploadsingle type assignment should respect course maxbytes too. 2010-10-04 03:37:12 +00:00
Aparup Banerjee 6d53b60b46 assignment MDL-23683 removed backup & restore of deprecated filearea : 'online_submission' 2010-09-30 08:01:45 +00:00
Aparup Banerjee 6aac01ca84 assignment MDL-23683 online assignment filearea changed for consistency from 'online_submission' to 'submission' 2010-09-30 06:30:34 +00:00
Aparup Banerjee abc89a8bda assignment MDL-24382 fixed enforcing file size limit in single upload 2010-09-30 03:49:59 +00:00
Aparup Banerjee 682a19234b assignment MDL-24373 cleaned up code. 2010-09-24 07:15:27 +00:00
Aparup Banerjee 694b7aef38 assignment MDL-24373 removed file count check to display button to manage assignment files submitted. file limits are managed entirely via the file manager ui. 2010-09-24 07:09:42 +00:00
Aparup Banerjee 5ddf75d8be assignment MDL-24240 set the assignment type plugin title string to produce notice for the subplugin's lang pack, removed notice for core lang pack 2010-09-23 12:29:48 +00:00