5092 Commits

Author SHA1 Message Date
stronk7
b017120ce0 Ops! I forgot to commit this 2 days ago! Now a lot of
data fields will be null!
2006-09-25 22:48:43 +00:00
stronk7
a653016d94 Some notes:
- Foreign keys are really cool (at the XMLDB Editor). Define them as necessary
  as they allow as one "formal" structure of the DB. They won't cause problems
  on generation, mainly because only the underlying index will be created.
- Please, put comments inside each table/field/key/index field, mainly because
  XML comments will be deleted if the file is edited by
- The XMLDB Editor. Please use it ;-)
- Also, one unique index was wrong in the XML file, fixed now.
2006-09-25 21:37:29 +00:00
sam_marshall
98a7359506 change from UNIQUE KEY to UNIQUE INDEX 2006-09-25 17:49:33 +00:00
sam_marshall
5cee80e183 (prev. wiki fix) Fixed broken constant defines 2006-09-25 17:47:35 +00:00
sam_marshall
22e846cde2 Wiki enhancement: edit locking (uses AJAX) 2006-09-25 17:42:32 +00:00
skodak
499c621417 fixed quoting error 2006-09-25 14:15:55 +00:00
skodak
a69be0d861 improved handling of resource file/directory references when renaming and deleting files in file manager. It is now fully configurable too. MDL-6132 2006-09-25 14:12:46 +00:00
vyshane
7c900d5d62 Changed to require_capability where possible 2006-09-25 13:14:50 +00:00
vyshane
7fa8296f01 Bug fixes 2006-09-25 13:05:18 +00:00
vyshane
dcd8e5890e Abstracted query in a new function forum_discussions_user_has_posted_in() 2006-09-25 08:50:00 +00:00
vyshane
cac40c2716 Added $forums[$i]->type == 'qanda' check to make things more explicit 2006-09-25 08:41:31 +00:00
vyshane
d50704bf19 Fix for MDL-6212. Forum searches now respect the qanda forums. In these forums, the user should not be able to see posts from discussions where the user has not yet posted, unless a post is the first post in the discussion (the question), or unless the user has the capabilitiy mod/forum:viewqandawithoutposting. 2006-09-25 08:25:58 +00:00
vyshane
77dc6d0b26 Discussions from a forum of type 'single' should not be splittable. Merge from 1.6 branch. 2006-09-25 05:12:01 +00:00
vyshane
66035aafd9 Merged fix for MDL-6521 2006-09-25 05:00:36 +00:00
vyshane
10b6398401 Fixed - wrong constant name 2006-09-25 04:11:41 +00:00
vyshane
87c7fce004 Merged fix for MDL-6363 2006-09-25 04:03:18 +00:00
vyshane
2a692058d0 Fix in forum_make_mail_post() 2006-09-25 02:34:52 +00:00
vyshane
4be6bced7f Fixed sql query in assignment_get_unmailed_submissions() - we can't rely on user_students anymore. 2006-09-25 02:04:11 +00:00
vyshane
0ee186d9ca Typo in capability name. 2006-09-25 01:35:49 +00:00
vyshane
b343df8690 Merged fix for MDL-6615. 2006-09-24 15:28:16 +00:00
vyshane
583b57b42d Changed <module>_print_recent_activity() functions so that they don't use $isteacher. However, I've left the $isteacher parameter in the functions, for backward compatibility so as not to break thrid party modules. Should we remove the parameter now? 2006-09-24 14:01:50 +00:00
vyshane
57244db359 Removed the following module configurations (converted to use roles):
participants, assesspublic and ratings. Changed assessed field to only use 1 (ratings on) or 0 (off).
2006-09-24 13:58:54 +00:00
moodler
847a041fb7 Better use of mod/quiz:view to hide quiz information (they already have the
name from the course page etc)
2006-09-24 13:54:22 +00:00
moodler
bf7288a2c0 Simplified a bit and removed a notice 2006-09-24 12:02:00 +00:00
skodak
189bb4a628 fixed warning in hotpot lib when running cron from commandline 2006-09-24 07:38:15 +00:00
mark-nielsen
31b50f6442 Fix for MDL-6628: the lesson object was not being cloned correctly. 2006-09-23 19:57:35 +00:00
mark-nielsen
6707a280a9 Moved endofbranch redirect up to avoid double printing of messages. 2006-09-23 19:32:25 +00:00
mark-nielsen
c7c404b964 Fixed alignment issue in IE 2006-09-23 18:51:49 +00:00
mark-nielsen
563106f0a8 Fixed branch table buttons to work with JavaScript turned off. This fix lead to some minor changes to the button output, but hopefully simplified things.
Also, removed .hidden-label class because it was no longer in use due to label fixes earlier.
2006-09-23 18:45:59 +00:00
skodak
7eb0b60a1f debugging and error reporting level fixes and improvements MDL-6671 2006-09-23 09:38:39 +00:00
stronk7
b8547480b7 Moving a bunch of database module fields to NULLable
(http://docs.moodle.org/en/XMLDB_Problems#NOT_NULL_fields_using_a_DEFAULT_.27.27_clause)
2006-09-23 09:37:53 +00:00
mark-nielsen
9b5274b96d Fixed a label 2006-09-23 01:01:14 +00:00
moodler
d7e8ffebbf Merged fixes from 1.6 2006-09-22 13:27:56 +00:00
vyshane
1febf1a77a Replaced isteacher & co. Fixed some issues. 2006-09-22 06:29:40 +00:00
moodler
aad2ba95d1 Upgrading table to rename the context->aggregatelevel field which was
really bugging me.   Code should be a little bit more readable now.

Apologies to those with non-core code already using this field.
2006-09-22 06:19:32 +00:00
moodler
1a030f5112 Fix for MDL-6319, to fix opposite-state links for unread tracking settings 2006-09-22 03:36:31 +00:00
vyshane
7ce56c1282 Removed mod/workshop:view 2006-09-22 03:28:56 +00:00
vyshane
73ebd5e23a Removed mod/wiki:view 2006-09-22 03:14:08 +00:00
vyshane
af94faf492 Removed mod/scorm:view 2006-09-22 03:07:29 +00:00
vyshane
b1e06f5fa0 Removed mod/resource:view 2006-09-22 03:05:46 +00:00
vyshane
94bcea7983 Removed mod/lesson:view 2006-09-22 02:58:39 +00:00
vyshane
7949f21b5f Removed 'mod/glossary:view' capability 2006-09-22 02:52:48 +00:00
moodler
b32c8ddadd Fixed typos in capability names 2006-09-21 14:05:58 +00:00
stronk7
db33348f53 When journal to assignment migration is performed, journal
upgrade hasn't been upgraded yet so the journal_entries->comment
field is still called "comment"
2006-09-21 10:04:49 +00:00
stronk7
0bc94c9990 Last reserved word is out now!
journal_entries->comment to entrycomment

Only 2 tables have reserved names but they aren't
a problem if we force $CFG->prefix always
2006-09-21 09:54:00 +00:00
stronk7
ea6432fede Moved assignment_submission->comment to submissioncomment
(because comment is DB reserved word)
2006-09-21 09:35:20 +00:00
vyshane
9222e72167 Removed capability mod/forum:viewforum. We will use moodle/course:viewhiddenactivities and hide/unhide forums instead. 2006-09-21 08:32:05 +00:00
vyshane
2b15a08dc9 Added some notes for future reference 2006-09-21 07:40:24 +00:00
vyshane
49a0ba9438 Cleanups in view.php. Also moved logging of a forum view so that the event is not logged if the user does not have permission to view discussions in a forum (user never sees the discussions, so not counted as a view).
Tidy up of error display in discuss.php for when a user does not have permission to view the discussion.
2006-09-21 05:42:35 +00:00
vyshane
9ae965d379 Removed column ratings from data table 2006-09-21 04:10:36 +00:00