Simey Lameze
26b683e798
MDL-66871 calendar: fix deprecated parameter in the phpDoc
2020-01-06 10:36:42 +08:00
Simey Lameze
5b3b975e3f
MDL-66871 calendar: fix ics importing logic
2020-01-06 09:49:59 +08:00
Eloy Lafuente (stronk7)
21418c9942
Merge branch 'MDL-67300-master' of https://github.com/sammarshallou/moodle
...
(fix trailing whitespace case)
2019-11-26 22:30:05 +01:00
sam marshall
584500d5ba
MDL-67300 Calendar: Inconsistent behaviour of managegroupentries
...
When calling the calendar_get_allowed_event_types function with
no course id, it is supposed to return true if you have the
relevant permissions in any course.
For users who have the managegroupentries permission, this was not
the case - even though it works correctly if you call the function
with a supplied course id.
This change makes behaviour with and without a supplied course id
consistent.
2019-11-21 10:51:35 +00:00
Pau Ferrer Ocaña
375d82cafc
MDL-66612 calendar: Change global events to site events
...
AMOS BEGIN
CPY [category,moodle],[category,calendar]
CPY [site,notes],[eventtypesite,calendar]
CPY [site,moodle],[site,calendar]
MOV [typesite,moodle],[siteevent,calendar]
AMOS END
2019-10-21 09:33:01 +02:00
Simey Lameze
ec482557a8
MDL-61450 calendar: fix course event type permissions
2019-10-03 13:20:33 +08:00
David Matamoros
21ad9531d0
MDL-66354 core_calendar: Notices in error.log on calendar events
2019-09-25 09:08:41 +02:00
Simey Lameze
2d132fda75
MDL-56223 calendar: show the number of deleted events
2019-09-05 17:15:14 +08:00
Simey Lameze
d5727ed3ba
MDL-56223 calendar: skip events updating if nothing has changed
2019-09-05 16:18:37 +08:00
Andrew Nicols
c188ddfe93
Merge branch 'MDL-59524-master' of git://github.com/cescobedo/moodle
2019-08-13 12:56:32 +08:00
Simey Lameze
4d98566939
MDL-66008 core_calendar: fix behat failures
2019-08-13 09:50:48 +08:00
Simey Lameze
bcd0583e68
MDL-66008 calendar: Remove duplicated call to library funciton
...
A duplicated call to calendar_get_allowed_event_types has
been removed.
2019-08-12 14:49:40 +08:00
cescobedo
0504254f1d
MDL-59524 general: Remove strings deprecated in 3.4
2019-08-12 00:13:08 +02:00
Simey Lameze
26d6404315
MDL-65958 calendar: students should not see course event type
2019-07-03 20:28:09 +08:00
Simey Lameze
419b868ae7
MDL-65707 calendar: set the correct event type on site calendar
2019-06-25 09:50:22 +08:00
Simey Lameze
dbccdae8f5
MDL-65671 calendar: add the calendar view selector
2019-06-10 13:09:57 +08:00
Simey Lameze
2b815157c9
MDL-59650 core_calendar: remove limit from calendar UI
2019-05-21 15:22:13 +08:00
Simey Lameze
e099259a46
MDL-59650 core_calendar: remove limit from event exporter
2019-05-21 15:22:09 +08:00
Simey Lameze
a8dcc212be
MDL-65262 core_calendar: change location param type
2019-05-02 11:29:42 +08:00
Jun Pataleta
92451f3a8a
Merge branch 'MDL-65206-master' of git://github.com/tobiasreischmann/moodle
2019-04-29 12:44:33 +08:00
Tobias Reischmann
90e331bcdc
MDL-65206 calendar: Enable update of location in repeated events.
...
The location is now updated in repeated events if it is altered in one
event and the option 'Also apply changes to the other X events in this
repeat series' is selected. If the location is not altered but some
other details, then manual changes of the location in other events
will not be overriden.
2019-03-29 14:13:43 +01:00
Marina Glancy
beff3806d6
MDL-10965 courses: capability to browse course list
2019-04-10 12:35:28 +02:00
David Monllaó
982fef46f4
MDL-64783 analytics: Activities due insight forwards to calendar
...
The patch includes changes applied after the peer review.
2019-04-09 00:29:57 +02:00
Shamim Rezaie
c51a157755
MDL-64830 core_calendar: Do cap check on event edit form
2019-03-05 04:24:53 +01:00
Simey Lameze
b13fe83adb
MDL-64214 core_calendar: fix event types form element handling
2018-11-29 13:59:32 +08:00
Luca Bösch
7294f412fc
MDL-63241 calendar: Add missing table alias in SQL query.
2018-10-07 21:43:47 +02:00
Neill Magill
656837d65f
MDL-62944 calendar: Clarify the intended use of $checkcapability
2018-08-31 10:15:37 +01:00
Marina Glancy
442f12f81a
MDL-62742 core: rename coursecat->core_course_category
...
Also rename course_in_list -> core_course_list_element
Deprecate class coursecat_sortable_records
2018-08-28 11:36:23 +02:00
Shamim Rezaie
95ae74a7bc
MDL-58768 calendar: Add $requestinguser to the container class
...
The requesting user is not always the same as the current user. The container class now allows a different user
to be set as the requesting user. All capability checks are done against the requesting user.
Also, the $requestinguser is passed to core_calendar_provide_event_action and core_calendar_is_event_visible
callback functions. These callback functions need to be updated in all activity modules to accept a $user parameter.
2018-07-28 07:51:32 +10:00
Shamim Rezaie
d8c6c21c95
MDL-58768 Calendar: Added user param to calendar_set_filters
...
Decoupled calendar_set_filters from $USER.
Also removed the backward compatibility bit from the function because it was a left over.
2018-07-28 07:41:50 +10:00
Shamim Rezaie
bd8705732d
MDL-58768 Calendar: Added userid param to calendar_get_default_courses
2018-07-28 07:41:50 +10:00
Simey Lameze
f8a95c3df6
MDL-60826 calendar: fix group event type logic
2018-07-25 12:43:37 +08:00
Simey Lameze
687112af22
MDL-60826 calendar: further performance improvements
...
This commit does few tweaks and other performance improvements to
calendar_get_allowed_event_types to be more efficient. Also some minor
queries optimizations on the event form to fetch the list of courses
without groups.
2018-07-25 08:54:59 +08:00
Simey Lameze
0f1e7ec906
MDL-60826 calendar: restrict course fields to be retrieved
2018-07-24 07:58:34 +08:00
Simey Lameze
375b15a346
MDL-60826 calendar: deprecate calendar_get_all_allowed_types
2018-07-24 07:58:34 +08:00
Simey Lameze
dfc609e55d
MDL-60826 calendar: lazy load groups on event form
2018-07-24 07:58:34 +08:00
Simey Lameze
4be55b06da
MDL-60826 calendar: introduce calendar_get_allowed_event_types function
2018-07-24 07:58:34 +08:00
Michael Hawkins
ef4e04ee26
MDL-37624 calendar: Added location support
2018-06-29 10:46:54 +08:00
Luca Bösch
0188d5b5b4
MDL-61956 calendar: allow to see hidden course with switch role
2018-05-02 09:37:32 +02:00
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
Jun Pataleta
3894262a2f
MDL-61152 calendar: Remove usage of undefined variable
2018-01-23 10:49:18 +08:00
David Monllao
abf089f2a3
Merge branch 'MDL-60967-master' of git://github.com/ryanwyllie/moodle
2018-01-16 12:36:27 +01:00
David Monllao
51673a3469
Merge branch 'wip-MDL-60742-master' of git://github.com/marinaglancy/moodle
2018-01-09 09:52:44 +01:00
Ryan Wyllie
60908b2187
MDL-60967 calendar: only load course filter when required
2018-01-09 05:57:38 +00:00
Marina Glancy
099bca6de6
MDL-60742 calendar: allow customisation of 12/24h time format strings
2018-01-04 15:16:08 +08:00
Jun Pataleta
60236650d6
Merge branch 'MDL-60962-master' of git://github.com/ryanwyllie/moodle
2018-01-03 16:53:49 +08:00
Ryan Wyllie
08a7915551
MDL-60964 calendar: lazy load context for calendar_event
...
Stop loading the context in the constructor if it hasn't been provided.
There is no need to load it by default. We should lazily load it when it
is required.
2017-12-13 03:20:00 +00:00
Ryan Wyllie
7884ecf24f
MDL-60962 block_calendar_month: load content after page render
2017-12-06 06:21:16 +00:00
David Monllao
087b3303a5
Merge branch 'MDL-60842-master' of git://github.com/lameze/moodle
2017-11-20 10:27:58 +01:00
Simey Lameze
2dc93a3769
MDL-60842 calendar: do not load all course fields
2017-11-20 16:49:45 +08:00