Commit Graph

630 Commits

Author SHA1 Message Date
moodler 0468976c9a SWEEPING CLEANUP
The API was changed slightly so that has_capability now takes the
whole $context object (we almost always have it anyway)

The $kill thing was removed.   If you want to assert a capability
then use:

    require_capability('capname', $context);

with optional variables to modify the error message

Misc bugs here and there also removed and code tidied
2006-08-14 05:55:40 +00:00
skodak c853b39f50 Bug #6225 - Moodle bug #4658 Breaks assignment type: Upload Single; merged from MOODLE_16_STABLE 2006-08-09 18:36:54 +00:00
moodler dabfd0ed85 Removed tabs 2006-08-09 13:45:49 +00:00
skodak f9d5371b28 new function get_coursemodule_from_id() is now used for obtaining of valid $cm from coursemodule id SC#283 2006-08-08 22:09:55 +00:00
moodler bbbf2d4015 ROLES AND PERMISSIONS - FIRST CHECK-IN
=======================================

WARNING:  DEV IS CURRENTLY VERY UNSTABLE.

This is a mega-checkin of the new Roles system.   A lot of changes have
been made in core and modules.

Currently there are a lot of rough edges and known problems.  We are
working hard on these .. .the reason for getting this into HEAD at this
stage is enable us to move faster (our branch was diverging from HEAD
too much).

Please keep an eye on http://docs.moodle.org/en/Roles for current status
and information for developers on how to use the new Roles system.
2006-08-08 05:13:06 +00:00
martinlanghoff bed24ce7f5 mod/assignment if we are not using a numeric scale and a custom scale
return that as the max grade


Author: Jun Yamog <jun@catalyst.net.nz>
2006-08-04 05:51:31 +00:00
skodak 583fad994c Bug #5352 - upgrade might be interrupted by user - upgrades are now logged into moddata/upgradelogs/, user abor is ignored and concurrent running of upgrades is prevented from one browser 2006-08-01 07:46:19 +00:00
martinlanghoff 0ff463ae95 assignment: count_user_files() no longer creates extraneous dirs (bug#4658)
Applied the fix by Samuli.Karevaara, from the bug report - the directory is checked for existence beforehand.
Previously it was created if it didn't exist, then the files within it were counted.


Author: Luke Hudson <luke@catalyst.net.nz>
2006-07-31 04:56:58 +00:00
skodak 246444b975 Bug #5615 - Assigment listing shows duplicate names with paged display; merged from MOODLE_16_STABLE 2006-07-06 09:47:48 +00:00
skodak f262874bbe Bug #5909 - Fix use of user_group() because it returns arrays now - part 1; merged from MOODLE_16_STABLE 2006-07-03 21:11:17 +00:00
skodak b3d4840d39 assignments on mymoodle page, Bug #5839 - Found more than one record in get_record_sql !; merged from MOODLE_16_STABLE 2006-06-26 16:16:43 +00:00
skodak 989a0a5203 Bug #5725 - Assignment grading pop up windows do not close, broken by 4976; merged from MOODLE_16_STABLE 2006-06-05 12:18:13 +00:00
moodler d6da4a1aeb merged mymoodle fix from stable 2006-05-29 09:21:36 +00:00
skodak 8f643c818b Bug #5620 - MyMoodle shows bogus Assignment due date; merged from MOODLE_16_STABLE 2006-05-29 08:37:51 +00:00
skodak 3f19bff3cd Bug #5619 - Assignment Feedback mail lacks linefeed; merged from MOODLE_16_STABLE 2006-05-26 09:07:13 +00:00
toyomoyo 7396321249 fix for 4976 2006-04-27 04:12:58 +00:00
moodler 9e0f5d2abf Added save changes button at top (Bug #1043 - submit button at top of journal report) 2006-04-21 02:23:33 +00:00
moodler f619f8c8ab FIx for slashes problem in bug 5222 (and some others) 2006-04-18 09:16:22 +00:00
moodler a2a3733666 iFIx up some styles for the MyMoodle overview 2006-03-15 04:01:10 +00:00
moodler 5d45c04fce More styles for My Moodle 2006-03-15 03:47:08 +00:00
moodler a7a74d7706 Added some styles 2006-03-15 03:42:51 +00:00
moodler 76a60031d0 All the assignment classes no longer need to be loaded, and removed some notices 2006-03-15 03:36:33 +00:00
patrickslee 101e9cad48 Dim link if not visible in my course view for assignment module 2006-03-14 22:05:16 +00:00
patrickslee 84fa8f5fdd Assignment module support for my moodle page 2006-03-14 21:26:37 +00:00
gustav_delius 7af1e88286 Added comments to the code (when will moodle HQ start commenting their own code? ;-) 2006-02-19 13:26:58 +00:00
gustav_delius 1ef048aed3 Fixing a misprint that was preventing multiple files from showing. 2006-02-18 21:19:04 +00:00
gustav_delius f00da052c0 Bug in "Prevent late submissions" setting fixed, thanks to Samuli, see bug 4780 2006-02-16 22:01:57 +00:00
gustav_delius 5c6b657acb Bug in "Prevent late submissions" setting fixed, thanks to Samuli, see bug 4780 2006-02-16 21:56:57 +00:00
stronk7 1884f2a6a7 Now it's possible to configure what is going to be counted (words or letters)
because some languages don't have word separators.

Merged from MOODLE_16_UTF8. Abandoning the branch.
2006-01-05 16:27:20 +00:00
toyomoyo e11dd87248 merged, bug #4504 2005-12-23 06:38:04 +00:00
moodler 81532b92f2 Merged bug 4351 fix from stable 2005-11-19 15:39:31 +00:00
skodak 39e1190567 some more fixes for assignment grading; merged from MOODLE_15_STABLE 2005-11-18 10:31:46 +00:00
skodak 5a36be8ce6 Fixed bug #4038 encoding problems when grading; merged from MOODLE_15_STABLE 2005-11-16 22:57:44 +00:00
skodak 77f4b17be8 cleaning of parameter name before use SC#188; merged from MOODLE_15_STABLE 2005-11-16 15:22:21 +00:00
skodak 16907e5366 no page flip after fastgrade saving, allow hiding of grade or comment column when fastgrading, do not update db when no changes in fastgrade; merged from MOODLE_15_STABLE 2005-11-15 23:48:04 +00:00
defacer 02828119f6 OK, trying to write about this in the SC made me think, thinking made me
find the solution. No hacks, no replicating the table object, I just tweaked
the table class itself to help us.

I 'll post at SC#187 about this, but the bug is now totally fixed.
2005-11-13 04:30:50 +00:00
defacer 86f6539591 Removing code block which, upon closer inspection, does nothing at all.
This is obviously a copy/paste artifact from mod/quiz/report/overview/report.php,
but notice that over there is non-trivial processing going on over there with the
sortorder array!

The sortorder can be used directly in queries, just stick an "ORDER BY " in front.
2005-11-13 04:01:41 +00:00
defacer 9894b8246c Gone through the code carefully. Committed what is basically Skodak's patch
at SC#187 postid 1104 with a small addition, EXCEPT the //HACK ALERT part.

Where does that leave us? The popup does not die anymore, BUT:

1. It throws a notice about $sort not being defined (to be expected)
2. It doesn't use the correct sortorder ($sort is not defined, so default sort)

Please see the discussion at SC#187 before doing more work on this.
2005-11-13 03:37:40 +00:00
defacer 5b48244f24 Carefully going through the code now...
Changing get_records_sql() for one record ALWAYS and associated foreach() to
a get_record_sql() without foreach. Please be considerate with copy/paste. ;-)
2005-11-13 03:20:35 +00:00
defacer c9977d055d Been playing around Assignment a bit, and Tidy kept complaining... 2005-11-13 02:50:46 +00:00
defacer 4fdabdc36f Merging from STABLE:
Better retrieval of table sortorder when not done directly through
the table class, see SC#187.
2005-11-12 03:04:11 +00:00
skodak 200c19fb8c cleaning as assignment types SC#182 continued; merged from MOODLE_15_STABLE 2005-11-10 00:22:57 +00:00
skodak de4564ee09 fixed incorrect assignment grades in gradebook when custom scales bug #4279; merged from MOODLE_15_STABLE 2005-11-09 22:39:29 +00:00
skodak c86aa2a479 fixed grades display in assignment/index.php when using different scales; merged from MOODLE_15_STABLE 2005-11-09 22:25:38 +00:00
skodak 5055a3e3d3 fixed grading when secure forms on bug #4300; merged from MOODLE_15_STABLE 2005-11-09 21:37:15 +00:00
moodler fa22fd5fff BIG FEATURE - MULTIPLE GROUPS
Users can now be assigned to multiple groups.  Thanks Yu!
Break out the Bob Marley!!

Otherwise groups work more or less like they did before.

This has been pretty well tested by Yu and myself, but since Yu started
uncovering lots of existing groups bugs it's possible there may be still
a few corner cases still lurking here and there.

Please help test this thoroughly for 1.6!!
2005-11-08 07:19:27 +00:00
moodler 082215e68e Merged fixes from stable 2005-11-04 06:50:30 +00:00
moodler a81662279f Merged fix for bug 4146 from stable 2005-11-03 09:40:23 +00:00
moodler 9bf660b326 Merged new assignment grading interface fixes from STABLE 2005-11-03 06:25:00 +00:00
moodler 20affd1593 Merged fixes for zero date displays in assignments 2005-09-09 16:17:43 +00:00