328 Commits

Author SHA1 Message Date
sam_marshall
f63d29223e MDL-11916 Added managegroupevents capability 2007-10-30 16:19:47 +00:00
nfreear
f79f249490 Follow up fix for MDL-11436 'Encapsulate "accesshide" HTML class in function', and use. 2007-10-15 10:04:41 +00:00
toyomoyo
9ba76792ca MDL-10353, adding couse variable to nav bar in calendar preferences 2007-10-15 04:46:31 +00:00
toyomoyo
b426fd8323 MDL-10353, calender redirection broken when editting and exporting 2007-10-11 05:24:12 +00:00
toyomoyo
d142077ef1 changing CONTEXT_GROUP to CONTEXT_COURSE for calendar:manageentries capability 2007-10-10 09:03:01 +00:00
moodler
f6ee5e041c Just a small fix that would make this SQL work ... no idea what bug it would fix. It's not MDL-9059 2007-10-10 08:18:59 +00:00
toyomoyo
e3bb6401e1 MDL-10048, revert some changes in courses regaring coloring of courses 2007-10-09 04:02:43 +00:00
toyomoyo
2cc649ee22 merged fix for MDL-10353, calendar export not handing course variable correctly 2007-10-05 03:52:17 +00:00
toyomoyo
d9a23b785f merged fix for MDL-10353, after setting preferences user should return to same course view 2007-10-04 05:13:28 +00:00
toyomoyo
45b39af803 MDL-10353, in view.php we should not supply default course, otherwise calendar filters will not be set up properly (course filter wrong) 2007-10-03 04:21:53 +00:00
toyomoyo
68ad444b15 fixing a calendar warning 2007-09-20 03:04:53 +00:00
toyomoyo
edeed697de fixing a warning in calendar 2007-09-20 02:57:17 +00:00
toyomoyo
8397874d1b fixing a warning when variable is not an object 2007-09-20 02:45:59 +00:00
martinlanghoff
37875ac5b7 calendar/lib: calendar_set_filters() use pre-fetched context and course recs
Showing the calendar block was causing 2 DB queries per course the
user is enrolled in. Instead, use the data available in the array that
is passed as a parameter, and spare the DB a ton of needless traffic.

Fixes MDL-11221 Calendar not using context stuff from get_my_courses

Author: Martin Dougiamas
2007-09-19 07:53:33 +00:00
nicolasconnault
6619eba40b MDL-10383 Reverting Petr's boolean cast on the array of allowed groups. It makes it impossible to get the "Group event" option in the calendar. 2007-09-11 07:29:48 +00:00
skodak
ffc536af8e MDL-7380 converted various places to use new groups API 2007-09-08 20:53:05 +00:00
skodak
b571c6b37b MDL-10995 eliminated some get course record calls - reused $COURSE instead 2007-08-26 08:24:50 +00:00
Martin Langhoff
13534ef716 cvsimport fixups 2007-08-29 13:10:11 +12:00
nicolasconnault
e295df447f MDL-10870 All files updated to new build_navigation() method. 2007-08-17 11:18:58 +00:00
nicolasconnault
73c24ef80b MDL-10870 All files updated to new build_navigation() method. 2007-08-16 15:01:25 +00:00
skodak
2c386f82e5 MDL-10383 - deprecated get_groups(), user_group() and ismember() 2007-08-15 20:21:01 +00:00
skodak
2524b0f24c MDL-10383 - major groups patch - see bug i ntracker for more details - authors: Nick, Matt, Enrique and me 2007-08-14 00:50:00 +00:00
stronk7
e3fc108e41 Let's use the default (cached) list of fields here. MDL-10571
Merged from MOODLE_18_STABLE
2007-07-23 16:34:41 +00:00
stronk7
e5797cd4ad Small improvement. Reducing the list of fields returned
by get_my_courses().

Merged from MOODLE_18_STABLE
2007-07-22 23:02:04 +00:00
dwoolhead
3bfd8bc8b7 MDL-10084 Styling/branding 2007-06-28 14:08:08 +00:00
dwoolhead
365cec3c18 MDL-10084 Styling/branding 2007-06-28 11:54:18 +00:00
toyomoyo
86ac8b24c1 merged fix for MDL-10273, users with no capability should not be able to view New Event button 2007-06-28 04:03:30 +00:00
dwoolhead
7308cb6949 MDL-10084 Styling/branding 2007-06-27 11:45:37 +00:00
dwoolhead
91bfdd664c MDL-10084 propogate course id through calendar pages to ensure consistent display for site front page, my moodle and courses 2007-06-22 15:20:20 +00:00
dwoolhead
54052a7ae1 MDL-10084 propogate course id through calendar pages to ensure consistent display for site front page, my moodle and courses 2007-06-22 13:30:22 +00:00
dwoolhead
d3b265933a MDL-10084 propogate course id through calendar pages to ensure consistent display for site front page, my moodle and courses 2007-06-22 13:20:06 +00:00
dwoolhead
173a5dfa71 MDL-10084 propogate course id through calendar pages to ensure consistent display for site front page, my moodle and courses 2007-06-21 15:58:00 +00:00
dwoolhead
f21ed0f3fc MDL-10084 propogate course id through calendar pages to ensure consistent display for site front page, my moodle and courses 2007-06-21 15:46:04 +00:00
stronk7
cba168a679 Now calendar export have some correct defaults. MDL-10175
Merged from MOODLE_18_STABLE
2007-06-19 17:54:30 +00:00
dwoolhead
bf9ae76c36 MDL-10048 General calendar view enhancements as per spec with regard to event highlighting 2007-06-13 16:26:19 +00:00
dwoolhead
edad8bec3c MDL-10048 General calendar view enhancements as per spec with regard to event highlighting 2007-06-13 14:30:42 +00:00
dwoolhead
10b1d59829 MDL-10048 General calendar view enhancements as per spec with regard to event highlighting 2007-06-13 12:55:23 +00:00
dwoolhead
1c4bedd7dd MDL-10048 General calendar view enhancements as per spec with regard to event highlighting 2007-06-13 10:37:05 +00:00
dwoolhead
7c50db30f9 MDL-10048 General calendar view enhancements as per spec with regard to event highlighting 2007-06-13 10:00:30 +00:00
dwoolhead
b4892fa2a0 MDL-10048 General calendar view enhancements as per spec with regard to event highlighting 2007-06-12 16:26:38 +00:00
dwoolhead
914be7f915 MDL-10048 Separate events key and monthly view in right side panel 2007-06-12 09:55:22 +00:00
dwoolhead
1a6ff43e1d MDL-10048 Separate events key and monthly view in right side panel 2007-06-12 09:30:12 +00:00
dwoolhead
6cc1a80532 MDL-9729 Ensure start of week day calculation observes user timezone setting in the same way as month start and end dates. Prevents incorrect display of dates (1 out) on main Moodle calendar display although mini calendar display is correct. (Merged from 1.8 stable branch) 2007-05-29 09:56:44 +00:00
nfreear
a84dea2c30 Follow-up fix bug MDL-9753, "THEME->larrow, rarrow don't work in stock IE6". 2007-05-14 13:28:21 +00:00
nfreear
ce3735d453 Fixes bug MDL-9753, "THEME->larrow, rarrow don't work in stock IE6" 2007-05-09 14:15:33 +00:00
mattc-catalyst
5416a9aa44 MDL-9617: Fixed bug in previous commits.
- warnings being displayed in developer mode.
- caused by patch from patch series not being applied.
2007-05-06 23:19:32 +00:00
martinlanghoff
0a66585b3d get_my_courses() callers update - check of the $fields param - pass null instead
The default way to call get_my_courses() is now to pass null in the $fields
param to get the (cached copy) of the useful fields. Cuts down enormously
on DB traffic, memory footprint, and session size.
2007-05-06 05:32:40 +00:00
martinlanghoff
b8227b8827 calendar: fixed group event display when only one course being viewed
Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-05-06 04:38:24 +00:00
martinlanghoff
6b4aeb314b calendar: bug fixed to previous commit (MDL-7416 MDL-9617)
Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-05-06 04:37:38 +00:00
martinlanghoff
37d87d11f9 calendar: performance optimisations + behaviour fix (MDL-7416 MDL-9617)
With 2500 courses the calendar was causing around 15000 queries at login and 5000 on the home page.

- Replaced queries inside loops with single unlooped queries.
- Fixed calendar so that course events will show when the users role is assigned at a category level.
- Moved calendar_session_vars() function call out of calendar/lib.php (including a lib should not have side effects)

Author: Matt Clarkson - with some conflict resolution from MartinL
2007-05-06 04:28:11 +00:00