Commit graph

84037 commits

Author SHA1 Message Date
Mark Nelson
de036a2d76 MDL-58188 mod_label: fixed call to update_completion_date_event()
Part of MDL-55611 epic.
2017-04-04 11:01:45 +01:00
Cameron Ball
8d4e0f29dc MDL-58383 core_calendar: Correctly filter in event vault
The filter parameter was being passed in as the wrong argument which
was allowing non action events to be returned.

Part of MDL-55611 epic.
2017-04-04 11:01:45 +01:00
Damyon Wiese
de66ac3cd6 MDL-55611 calendar: fix calendar_event uses
It was renamed to \core_calendar::event
2017-04-04 11:01:44 +01:00
Damyon Wiese
01a95b86cd MDL-55611 icons: Remove pix_url
Change to image_url because these are not "pix icons".
2017-04-04 11:01:44 +01:00
Andrew Nicols
569d091b03 MDL-58333 core_calendar: Make WS available to Mobile
Part of MDL-55611 epic.
2017-04-04 11:01:43 +01:00
Andrew Nicols
80ece0847e MDL-58333 enrol: Include course progress in course listing WS
Part of MDL-55611 epic.
2017-04-04 11:01:43 +01:00
Mark Nelson
08db22c105 MDL-58017 mod_quiz: added action event unit tests
Part of MDL-55611 epic.
2017-04-04 11:01:43 +01:00
Mark Nelson
b3d7d175b8 MDL-58017 mod_quiz: added action events
Part of MDL-55611 epic.
2017-04-04 11:01:42 +01:00
Damyon Wiese
739de5fefe MDL-58087 mod_forum: Fix fragile test
This test was dependant on the randomly generated group names coming back in a
specific order.

Part of MDL-55611 epic.
2017-04-04 11:01:42 +01:00
Cameron Ball
378259a8ab MDL-58087 core_calendar: Fix random unit test failure
Part of MDL-55611 epic.
2017-04-04 11:01:42 +01:00
Cameron Ball
200f979c4c MDL-58087 core_calendar: Keep legacy implementation of calendar_get_events
The new implementation of calendar_get_events (i.e., \core_calendar\api::get_events)
has a subtly different behaviour. So we need to maintain the existing implementation
in deprecatedlib.

Part of MDL-55611 epic.
2017-04-04 11:01:41 +01:00
Cameron Ball
bd01fd15d4 MDL-58087 core_calendar: Unit tests now jam with new vault behaviour
Some unit tests needed to be updated to specify a few extra
bits and pieces on the events to work properly with the
new event vault behaviour.

Part of MDL-55611 epic.
2017-04-04 11:01:41 +01:00
Cameron Ball
258a570563 MDL-58087 core_calendar: Move logic from get_events to the local API
The logic from get_events has now been moved in to our local API
and is used by the event vault to retrieve events, instead of
querying the database directly.

This has the advantage that it deals with overrides and only
returns events for the relevant user.

Part of MDL-55611 epic.
2017-04-04 11:01:40 +01:00
Cameron Ball
02854eac9e MDL-58087 core_calendar: Don't pass non action events through our plumbing
The event factory should simply instantiate an event for non action
events and pass only action events through the plumbing.

This way modules implementing the callbacks can be sure that what
is passed in to the callback is actually supposed to be an action event.

Part of MDL-55611 epic.
2017-04-04 11:01:40 +01:00
Cameron Ball
f8a3e28b16 MDL-58087 core_calendar: Don't process events not created by modules
Our API infrastructure currently only deals with events created
by course modules. Site, user, etc events can't be dealt with.

Part of MDL-55611 epic.
2017-04-04 11:01:40 +01:00
Cameron Ball
aa1cdff5f6 MDL-58087 mod_lesson: Apply overrides in event action callback
Part of MDL-55611 epic.
2017-04-04 11:01:39 +01:00
Cameron Ball
a82becaa25 MDL-58087 mod_assign: Apply overrides in event action callback
Part of MDL-55611 epic.
2017-04-04 11:01:39 +01:00
Cameron Ball
b6d9b701f0 MDL-58087 core_calendar: Remove redundant event vault factory
Part of MDL-55611 epic.
2017-04-04 11:01:38 +01:00
Juan Leyva
a24289f12f MDL-57821 mod_feedback: New WS mod_feedback_get_responses_analysis 2017-04-04 12:01:23 +02:00
Juan Leyva
495745a36e MDL-57821 mod_feedback: Allow export tables to external structure 2017-04-04 12:01:22 +02:00
Cameron Ball
59a601e632 MDL-58087 core_calendar: Set correct ID for repeat event collection
Initially we were only sending "top level" events through our API
i.e., events that can be repeated, but are not repeats themselves.
In the future we will be sending ALL events through our API and int
that situation the ID of the collection needs a small bit of logic
to correctly set the ID of the parent.

Part of MDL-55611 epic.
2017-04-04 11:01:19 +01:00
Marina Glancy
125c4c4cb8 MDL-57961 course: change wording of module availability
renamed Visible to Availability and added help strings

AMOS BEGIN
 CPY [availability,core_moodle],[modvisible,core_moodle]
 CPY [availability,core_moodle],[modvisiblewithstealth,core_moodle]
 CPY [availability,core_moodle],[modvisiblehiddensection,core_moodle]
 CPY [show,core_moodle],[modshow,core_moodle]
 CPY [hide,core_moodle],[modhide,core_moodle]
AMOS END
2017-04-04 17:05:57 +08:00
Dan Poltawski
5eff54929d Merge branch 'MDL-12689-master-fix1' of http://github.com/damyon/moodle 2017-04-04 07:51:05 +01:00
Damyon Wiese
46d5582ec9 MDL-58478 oauth2: Use real admin settings
This is an upgrade to real admin settings to comply with MDL-12689
2017-04-04 14:37:13 +08:00
Daniel Thee Roperto
745212bda0 MDL-58479 documentation: fixed phpdoc for notice(). 2017-04-04 16:20:41 +10:00
Dan Poltawski
ab8aa88214 Merge branch 'MDL-55941-initialbar-ux' of https://github.com/ilya-catalyst/moodle 2017-04-04 06:56:26 +01:00
Dan Poltawski
dda4dcaffb Merge branch 'MDL-58220-master-fix1' of http://github.com/damyon/moodle 2017-04-04 06:54:07 +01:00
Andrew Nicols
930cab683d Merge branch 'master' of https://github.com/koennys/moodle 2017-04-04 11:48:50 +08:00
Damyon Wiese
d37945c37a MDL-58220 repository_onedrive: standard plugin
Add this plugin to the standard plugin list.
2017-04-04 11:18:27 +08:00
Damyon Wiese
3615842625 MDL-12689 auth: No settings if ldap missing 2017-04-04 11:15:29 +08:00
Andrew Nicols
a9bca28400 Merge branch 'wip-MDL-41809-master' of git://github.com/marinaglancy/moodle 2017-04-04 10:43:41 +08:00
Andrew Nicols
7d1709f91e MDL-48771 mod_quiz: Rebase conflict fix img => .icon 2017-04-04 10:41:22 +08:00
Damyon Wiese
6e53e3d232 MDL-58220 repo: Fix typo in FILE_CONTRLLED_LINK 2017-04-04 10:40:01 +08:00
Andrew Nicols
23f1f5211e Merge branch 'MDL-48771-squashed' of git://github.com/timhunt/moodle 2017-04-04 10:37:26 +08:00
Damyon Wiese
bcd08003fa MDL-58220 lang: Add / fix lang strings
The refactoring during integration caused some lang string errors.
2017-04-04 10:28:14 +08:00
Colin Chambers
f37cffb6a5 MDL-48771 quiz edit: delete mulitiple tidy up & Behat tests 2017-04-04 01:53:43 +01:00
David Monllao
6d353d2dfd MDL-23919 mod_data: completionentries can be null 2017-04-04 00:27:30 +02:00
David Monllao
b1e8f8bf37 MDL-12689 mod_data: Remove trailing whitespaces 2017-04-04 00:14:35 +02:00
David Monllao
fcada374ac Merge branch 'MDL-12689_m33v4' of https://github.com/sbourget/moodle 2017-04-04 00:08:50 +02:00
David Monllao
bf3b4321c0 MDL-23919 mod_data: Clean illegal whitespace
Also moving upgrade step below 3.2 mark.
2017-04-04 00:07:24 +02:00
Mohamed Afrar
49b60a1c9a MDL-57475 Forum: Fixing issue with the 'preferences' link in emails 2017-04-04 03:00:55 +05:30
David Monllao
ea51aa631b Merge branch 'MDL-23919-mod_data-required-entry-completion' of https://github.com/marcusgreen/moodle 2017-04-03 23:24:28 +02:00
Luca Bösch
5d803e5395 MDL-48771 quiz: Select multiple questions to delete
Upon Moodle 2.8 the option to bulk delete all questions of a quiz
disappeared.
This patch adresses this and reintruduces a bulk action button.
Pushing that button shows a Delete and a Cancel button as well as
two Select all / Deselect all triggers and each and every question
gets a checkbox. The UI is slimmed down and other elements (e.g.
'Repaginate' button and so on) are hidden. Questions can be chosen
and deleted by pushing the Delete button. The bulk action button
is disabled when quiz attempts are present, just like the
'Repaginate' button.

TODO: Behat tests are lacking.
2017-04-03 20:11:47 +01:00
Marina Glancy
cf873ada46 MDL-23919 mod_data: small corrections to completion form element 2017-04-03 18:15:52 +01:00
Dan Poltawski
a29cd3138c Merge branch 'MDL-57411-master' of git://github.com/jleyva/moodle 2017-04-03 17:59:34 +01:00
AMOS bot
510a16b23f Automatically generated installer lang files 2017-04-04 00:05:15 +08:00
Stephen Bourget
037273d87e MDL-12689: convert auth plugins to use settings.php 2017-04-03 10:50:09 -04:00
Eloy Lafuente (stronk7)
8478e5b44c Merge branch 'MDL-58462-master' of git://github.com/junpataleta/moodle 2017-04-03 16:35:50 +02:00
David Monllao
371e2385a9 Merge branch 'MDL-55459-master' of https://github.com/lucisgit/moodle 2017-04-03 16:27:26 +02:00
Dan Poltawski
ece14dab98 MDL-37765 install: Fix missinf field definition 2017-04-03 13:45:59 +01:00