Martin Gauk
c4172077df
MDL-61519 calendar: do not iterate through all categories
...
Replace calls to \coursecat::get_all() or cache the results.
2018-03-16 14:30:55 +00:00
Ryan Wyllie
28852998f6
MDL-60958 calendar: stop db query in repeat collection constructor
...
Stop loading the parent record in the constructor because it is an
unnecessary DB query for each event instantiation.
Return null on get_repeats() for events that don't have repeats.
2018-02-12 05:29:11 +00:00
David Monllao
09896c35f2
Merge branch 'MDL-60963-master' of git://github.com/ryanwyllie/moodle
2018-01-17 10:49:58 +01:00
Ryan Wyllie
3152de6a8d
MDL-60963 calendar: use related cache for module instances in export
2018-01-17 03:23:36 +00:00
David Monllao
abf089f2a3
Merge branch 'MDL-60967-master' of git://github.com/ryanwyllie/moodle
2018-01-16 12:36:27 +01:00
Eloy Lafuente (stronk7)
3e9282d486
Merge branch 'MDL-60959-master' of git://github.com/ryanwyllie/moodle
2018-01-16 01:14:39 +01:00
David Monllao
2692af9032
Merge branch 'MDL-60960-master' of git://github.com/ryanwyllie/moodle
2018-01-15 12:10:20 +01:00
Ryan Wyllie
60908b2187
MDL-60967 calendar: only load course filter when required
2018-01-09 05:57:38 +00:00
Ryan Wyllie
4e6c9ead6d
MDL-60959 calendar: remove duplicate events export in weekday
2018-01-09 01:51:13 +00:00
Ryan Wyllie
6b02488559
MDL-60959 calendar: remove duplicate course export in event exporter
2018-01-09 01:51:13 +00:00
Ryan Wyllie
bb4691ec7b
MDL-60959 calendar: use related course in calendar_event_exporter
2018-01-09 01:51:12 +00:00
Ryan Wyllie
7884ecf24f
MDL-60962 block_calendar_month: load content after page render
2017-12-06 06:21:16 +00:00
Ryan Wyllie
9aeb909d2f
MDL-60960 calendar: check enrolment at last chance in container
...
The enrolment check should only be done if all other checks fail before
it because it's a fairly expensive check to run.
2017-12-05 07:38:05 +00:00
Jun Pataleta
9ff02b52b2
Merge branch 'MDL-60813-master' of git://github.com/jleyva/moodle
2017-11-22 13:24:33 +01:00
Simey Lameze
1a765e32b0
MDL-60823 calendar: use first day of week on prepadding calc
2017-11-17 11:02:39 +08:00
Juan Leyva
44ae08383b
MDL-60813 calendar: Fix core_calendar_get_calendar_events for categories
...
Users couldn’t see category events when filtering by categories in the
core_calendar_get_calendar_events WS.
2017-11-16 19:16:01 +01:00
Ryan Wyllie
08b7558483
MDL-60766 block_calendar_upcoming: stop summary modal not logged in
...
Stopped the JS from running on the block when the user is not logged in
because it attempts to load a summary modal when an event is clicked on
which results in a failed call to a webservice.
2017-11-10 02:20:32 +00:00
Andrew Nicols
03561ea899
Merge branch 'MDL-60062-master-2' of git://github.com/ryanwyllie/moodle
2017-11-07 13:49:47 +08:00
Ryan Wyllie
6688ae2ba2
MDL-60062 calendar: prevent drag and drop of override events
2017-11-07 05:47:18 +00:00
Ryan Wyllie
478b1d194f
MDL-60062 calendar: remove validate_event_timestart callback
2017-11-07 01:25:33 +00:00
Jake Dallimore
eb354bdefa
Merge branch 'MDL-60361-master' of git://github.com/andrewnicols/moodle
2017-11-06 09:29:46 +08:00
Andrew Nicols
b9fd516407
MDL-60361 calendar: Support all event types for calendar subs
2017-11-03 11:27:40 +08:00
Andrew Nicols
30ff29dc9f
MDL-60587 calendar: Improve link params for calendar buttons
2017-11-02 21:49:28 +08:00
Andrew Nicols
d523cbcb26
MDL-60558 calendar: Upcoming should support categories
2017-11-02 11:54:43 +08:00
Andrew Nicols
0df5c743ad
MDL-60361 calendar: Make eventtype functionality a trait
2017-11-02 07:57:44 +08:00
Jun Pataleta
cc80554892
Merge branch 'MDL-60608-master' of git://github.com/lameze/moodle
2017-10-30 11:47:54 +13:00
Andrew Nicols
eb3b38f04c
MDL-60570 calendar: Correct course filter label in day view
2017-10-29 21:05:55 +08:00
Simey Lameze
0d049757c0
MDL-60608 calendar: change eventdefaultcontext default to 0
2017-10-27 14:19:16 +08:00
David Monllao
fd39db29e2
Merge branch 'MDL-59973-master' of git://github.com/damyon/moodle
2017-10-26 09:47:22 +02:00
Damyon Wiese
ef7df2ae0a
Merge branch 'MDL-60564_master' of git://github.com/markn86/moodle
2017-10-26 14:43:39 +08:00
Damyon Wiese
a5327e449d
MDL-59973 calendar: Admin calendar course lists
...
Consolidate the logic for the list of courses an admin will see in the calendar.
They will see all courses if calendar_admincanseeall is enabled.
They will see only courses they are enrolled in of calendar_admincanseeall is not enabled.
They will also see the current course, if they are admin and it is not already in the list.
This applies to the course selector and the create and update event forms.
The calendar link in the navigation block has also been changed to link to the current course calendar instead of the global
one.
2017-10-26 13:28:00 +08:00
Jake Dallimore
6e186498fd
Merge branch 'MDL-59686-master' of git://github.com/lameze/moodle
2017-10-26 10:16:21 +08:00
Simey Lameze
3c2b703e00
MDL-59686 form: fix autosave support for editor field
2017-10-26 09:03:31 +08:00
Jun Pataleta
75909e3c92
Merge branch 'MDL-59938-master' of git://github.com/andrewnicols/moodle
2017-10-26 11:22:30 +13:00
Jake Dallimore
e3a247849b
Merge branch 'MDL-60561-master' of git://github.com/andrewnicols/moodle
2017-10-25 12:45:53 +08:00
Mark Nelson
8e85371800
MDL-60564 calendar: removed duplication of exporter properties
2017-10-25 12:06:26 +08:00
Mark Nelson
429f78412d
MDL-60564 calendar: removed unnecessary get_new_event_button()
2017-10-24 17:49:28 +08:00
Mark Nelson
d2065abd0b
MDL-60564 calendar: removed unnecessary get_course_filter_selector()
2017-10-24 17:49:26 +08:00
Andrew Nicols
acd146fe7c
MDL-59938 calendar: Only show repeat information if repeating event
2017-10-24 16:00:36 +08:00
Andrew Nicols
349d379616
MDL-60561 calendar: Increase event limit for calendar
...
It's quite common to have more than 50 events in a calendar month, but
we do not want to change the default value when the API is called in
other ways.
2017-10-24 13:31:05 +08:00
Mark Nelson
72c4cacfa3
MDL-60422 core_calendar: do not lose track of the selected course
2017-10-23 17:18:28 +08:00
David Monllao
7152d2ff7a
Merge branch 'MDL-60176-master' of git://github.com/andrewnicols/moodle
2017-10-16 20:02:03 +02:00
Jun Pataleta
55b5133595
Merge branch 'MDL-60307-master' of git://github.com/lameze/moodle
2017-10-16 13:43:22 +08:00
Simey Lameze
166cd10aa7
MDL-60307 core_calendar: rename subscriptions name and url
2017-10-16 12:58:48 +08:00
Damyon Wiese
6dc633fd93
Merge branch 'MDL-60058-master-4' of git://github.com/ryanwyllie/moodle
2017-10-16 12:28:59 +08:00
Ryan Wyllie
a4f949442c
MDL-60058 calendar: fix event context issue in month_detailed
2017-10-13 06:38:02 +00:00
Ryan Wyllie
c56dd950eb
MDL-60058 calendar: add visual indicator to UI for valid drop zones
2017-10-13 06:18:44 +00:00
Simey Lameze
2ab3787e18
MDL-59921 calendar: remove disabledIf from group select
2017-10-12 09:19:43 +08:00
Simey Lameze
580a168a15
MDL-59921 calendar: fix wrong array assumptions
2017-10-11 16:26:51 +08:00
Jun Pataleta
8c0f6e5419
Merge branch 'MDL-59921-master' of git://github.com/lameze/moodle
2017-10-11 11:07:14 +08:00