20588 Commits

Author SHA1 Message Date
Shamim Rezaie
a8df987e07 MDL-63135 mod_choice: Check if the module is visible to the user 2018-09-06 20:14:04 +10:00
Shamim Rezaie
1b82088f98 MDL-63135 mod_choice: Add userid param to mod_choice calendar callback 2018-09-06 20:09:50 +10:00
Shamim Rezaie
0ec076ef34 MDL-63135 mod_choice: Added choice_get_user_response function
A new function to return choice answers records of a given user in a given choice activity.
2018-09-06 20:01:05 +10:00
Shamim Rezaie
dd1ba60f30 MDL-63117 mod_book: Check if the module is visible to the user 2018-09-06 17:41:06 +10:00
Shamim Rezaie
a4fd6c07ba MDL-63117 mod_book: Add userid param to mod_book calendar callbacks 2018-09-06 15:54:36 +10:00
David Mudrák
5e2236a2f0 MDL-60820 workshop: Fix default value of submissiontypefile 2018-09-05 11:29:53 +02:00
Jake Dallimore
c96c9601af MDL-62947 mod_feedback: fix feedback so it correctly uses forms API
Feedback code was doing the following, which is incompatible with the
sec-patched quickforms lib:
- appending '[0]' to non-group element names, meaning type checks in
getCleanType() were falling back to PARAM_RAW instead of PARAM_INT,
and meaning _findValue() was comparing elements it thought to be arrays
with scalar submit values (worked with eval() implementation as the 0th
element of a string was the character, but not working when patched).
- external unit tests incorrectly testing multichoice questions in the
process_page tests - patched lib highlighted failures.

It was also doing the following:
- actively setting null as default element values instead of 0 for
radio buttons and dropdowns (for 'not selected'). This is incompatible
with more recent quickforms lib (see MDL-63070).
- creating groups using addElement instead of addGroup - not recommended

This patch addresses the above.
2018-09-05 12:12:20 +08:00
Eloy Lafuente (stronk7)
f6cafe495e Merge branch 'MDL-63249-master-enfix' of git://github.com/mudrd8mz/moodle 2018-09-04 22:34:51 +02:00
Jun Pataleta
d58fd3dcbb Merge branch 'MDL-60578-master' of git://github.com/jleyva/moodle 2018-09-04 21:18:02 +08:00
Juan Leyva
f39d43af41 MDL-60578 mod_feedback: Handle correctly site feedbacks 2018-09-04 14:18:41 +02:00
Marina Glancy
38fefb5cdf MDL-60578 mod_feedback: pass courseid to WS 2018-09-04 14:18:39 +02:00
David Monllao
6a98671916 Merge branch 'MDL-60820-master-workshopsubmissiontypes' of git://github.com/mudrd8mz/moodle 2018-09-04 13:07:00 +02:00
David Monllao
ffc4cc9a25 Merge branch 'MDL-62944' of https://github.com/NeillM/moodle 2018-09-04 12:15:36 +02:00
David Monllao
adb8eb9c9c Merge branch 'MDL-55993-master' of https://github.com/albertolarah/moodle 2018-09-04 10:51:28 +02:00
Helen Foster
24a29d720c MDL-63249 lang: Merge English strings from the en_fix language pack
Significant string changes:

* completionpass_help, gradetopassnotset in mod_quiz - grade to pass set
  in quiz settings not gradebook
* namecolumnmissing,core_cohort - fixing incorrect message about adding
  users to a cohort
2018-09-04 08:40:48 +02:00
David Monllao
dfc6f782e1 Merge branch 'MDL-38301-master' of git://github.com/junpataleta/moodle 2018-09-03 12:44:50 +02:00
Alberto Lara Hernández
96a037f755 MDL-55993 mod_assign: web services don´t set a URL. 2018-09-03 12:18:41 +02:00
Mark Johnson
7d2ad716dd MDL-60820 workshop: Allow teacher to specify submission types
This allows the teacher to define what students are supposed to submit
(online text and/or attachment) and if the given submission part is
required or optional.
2018-08-31 14:48:29 +02:00
Neill Magill
bbf1fde412 MDL-62944 activities: Activities should not require capability
Activities should not require the user manipulating them to have
calendar capabilities for their events to be added to the Moodle
calendar
2018-08-31 10:15:37 +01:00
Neill Magill
196aa50489 MDL-62944 activities: Test adding activities with no calendar capability 2018-08-31 10:15:36 +01:00
Neill Magill
0b673d9714 MDL-62944 mod_data: Action menu missing from database pages
The action menu was missing from many of the database activity pages,
which meant that it could not be accessed until enough had been done to
the activity to make the editing tabs that used view.php accessible.
2018-08-31 10:15:32 +01:00
Eloy Lafuente (stronk7)
cf76059eda Merge branch 'MDL-62535-master' of git://github.com/abgreeve/moodle 2018-08-30 01:19:57 +02:00
Andrew Nicols
75ad50cba0 Merge branch 'MDL-62782-master' of git://github.com/damyon/moodle 2018-08-28 07:06:22 +08:00
Andrew Nicols
fdab90a7d4 Merge branch 'MDL-53024-master' of git://github.com/damyon/moodle 2018-08-27 15:45:57 +08:00
Zig Tan
8f7d07fa7d MDL-38301 mod_assign: Fix date validation logic & message consistency 2018-08-27 15:26:22 +08:00
Víctor Déniz Falcón
5a4b4c06ec MDL-57281 behat: Fix some goutte tests (cannot click on li)
Simply they are not needed, without JS everything is expanded.
2018-08-22 18:34:50 +02:00
Damyon Wiese
334db37769 MDL-53024 assign: Remove incorrect logic in query
We are simplifying this query so it will return grades if the attempt matches
the submission attempt, or there is no submission. The case where there is a grade
but no submission can happen only for group assignments.
2018-08-22 12:59:10 +08:00
Andrew Nicols
9adf5f0595 Merge branch 'MDL-57281-master' of https://github.com/vmdef/moodle 2018-08-21 10:49:10 +08:00
Víctor Déniz Falcón
02fda279ed MDL-57281 behat: deprecated step definition I navigate to node in
Definition step deprecated and affected tests modified.
2018-08-20 12:53:26 +01:00
Jake Dallimore
4638819780 Merge branch 'MDL-63097' of git://github.com/stronk7/moodle 2018-08-20 13:51:50 +08:00
Adrian Greeve
620dbfbe89 MDL-62535 mod_assign: Update to providers to include adv grading. 2018-08-20 11:32:01 +08:00
Andrew Nicols
a4c596cb00 Merge branch 'MDL-63176' of https://github.com/spvickers/moodle 2018-08-20 11:15:35 +08:00
Stephen Vickers
1272a926d5
MDL-63176 enrol_lti: Add $COURSE to global
Ensure that capabilities using $COURSE can be parsed.
2018-08-16 22:41:57 +01:00
Eloy Lafuente (stronk7)
9c1c0de78c Merge branch 'MDL-61650-master' of git://github.com/damyon/moodle 2018-08-14 16:49:44 +02:00
David Monllao
3ff9233a18 Merge branch 'MDL-36754-master' of git://github.com/andrewnicols/moodle 2018-08-14 08:49:45 +02:00
Andrew Nicols
bc51085174 Merge branch 'MDL-62643-master' of git://github.com/damyon/moodle 2018-08-14 09:04:17 +08:00
Andrew Nicols
7fa3089753 MDL-36754 mod_forum: Use token for emailed pictures 2018-08-14 07:08:29 +08:00
David Monllao
49a973014c Merge branch 'MDL-62761-master' of https://github.com/jmvedrine/moodle 2018-08-13 15:29:34 +02:00
Jean-Michel Vedrine
a4ffdbf3f0 MDL-62761 lesson: wrong deadlines on index with overrides 2018-08-12 07:44:41 +02:00
Andreas Wagner
288cbbf2d5 MDL-60114 mod_data: adding db activity lost radio field choose option 2018-08-11 07:41:40 +02:00
Eloy Lafuente (stronk7)
2bf974e7ef MDL-63097 phpunit: decouple user lastping and session start in tests
Previously the test was assuming that the user last ping, when
accessing to a chat should match the first (enter) system message
sent to the chat. And that's ok 99% of times but, if seconds advance
between the creation of the chat_users record and the chat_messages
one, then they don't match.

So now, the assumption is not used anymore and the expectation
is the timestamp of that first (enter) system message, explicitly.
2018-08-10 02:32:37 +02:00
Andrew Nicols
1718a59ee2 Merge branch 'MDL-62993_master' of git://github.com/markn86/moodle 2018-08-08 13:10:41 +08:00
Andrew Nicols
03655bb050 Merge branch 'MDL-50225_master' of git://github.com/markn86/moodle 2018-08-08 08:14:55 +08:00
Eloy Lafuente (stronk7)
ff4bab999b Merge branch 'MDL-61839-master' of git://github.com/mihailges/moodle 2018-08-07 23:52:08 +02:00
Eloy Lafuente (stronk7)
521ebb76b0 Merge branch 'MDL-61870-master' of git://github.com/damyon/moodle 2018-08-07 23:48:31 +02:00
Eloy Lafuente (stronk7)
c8bea6ae57 Merge branch 'MDL-53297-master' of git://github.com/cescobedo/moodle 2018-08-07 15:57:00 +02:00
Andrew Nicols
4af25b000f Merge branch 'MDL-54741-master' of git://github.com/mihailges/moodle 2018-08-07 12:19:44 +08:00
Mihail Geshoski
9d98033ff9 MDL-61839 glossary: One letter search in glossary returns all entries 2018-08-06 09:45:34 +08:00
Mihail Geshoski
216b89475d MDL-54741 general: 3.2 final deprecation in lib/deprecatedlib.php 2018-08-06 09:29:54 +08:00
Andrew Nicols
b4463cf9a7 Merge branch 'MDL-62969_master' of git://github.com/markn86/moodle 2018-08-06 09:21:14 +08:00