105 Commits

Author SHA1 Message Date
Simey Lameze
2cfd8d1678 MDL-62992 question: conditionaly enable question tags feature 2019-03-27 10:16:05 +08:00
VinhLe
d02247448b MDL-63944 Question: Add toggle all to Quiz Activity 2019-02-15 14:42:07 +07:00
Andrew Nicols
270fd3f5e4 MDL-63944 Question: Convert toggle all to generic module 2019-02-15 10:07:08 +07:00
VinhLe
b65bc972e6 MDL-63944 Questions Bank: Select all checkbox should be checked
When checkbox item be chosen then "Select All" be chosen.
When "Select All" be chosen then all checkbox item be chosen.
2019-02-15 10:07:08 +07:00
Shamim Rezaie
98e019455e MDL-64551 core_question: Fix double ampersand escaping in tag button 2019-01-14 18:21:41 +11:00
Tim Hunt
b195523758 MDL-63809 question bank: ensure question_has_capability_on can be called 2018-12-18 14:54:28 +11:00
Andrew Nicols
c96cd71102 MDL-63924 privacy: Add shared user providers to subsytsems 2018-11-08 21:26:18 +08:00
Mihail Geshoski
076288307f MDL-63564 core_question: Avoid using UNION in get_users_in_context() 2018-11-02 14:14:19 +08:00
Shamim Rezaie
bdba3b97fd MDL-63564 question: Add helper to fetch users in context
This issue is a part of the MDL-62560 Epic.
2018-11-02 13:56:01 +08:00
Shamim Rezaie
c8aff683cb MDL-63564 core_question: support removal of multiple users in a context
This issue is a part of the MDL-62560 Epic.
2018-11-02 13:56:01 +08:00
Shamim Rezaie
0ce3fef70a MDL-63390 quiz_statistics: Remove Min/Median/Maximum rows
Part of MDL-62610
2018-10-01 07:53:10 +08:00
Shamim Rezaie
84140b9137 MDL-63390 quiz_statistics, question: Handling variants as well
Variants should also be treated like random questions in the sense that
a summary row
should be displayed for them as well.
This commit deals with handling variants.
Also the name of the calculated_random_question_summary class has
changed to
calculated_question_summary to be more generic as the summary row is not
specific to random questions only.
Also removed the protected function too_many_subq_and_or_variant_rows
and the const SUBQ_AND_VARIANT_ROW_LIMIT as they were not being used
anymore.

Part of MDL-62610
2018-10-01 07:52:31 +08:00
Shamim Rezaie
f4bc55871c MDL_63390 question: Fixed get_min_max_of and get_min_max_of_sd
Fixed calculated_random_question_summary:get_min_max_of and calculated_random_question_summary:get_min_max_of_sd
functions and added unit tests

Part of MDL-62610
2018-10-01 07:52:18 +08:00
Shamim Rezaie
d79fef2ab5 MDL-63186 question: Calculate extremums of summarised questions
Modified calculated_random_question_summary class so that it can return minimum and maximum
of each attribute of the sub questions it is summarising.

Part of MDL-62610
2018-09-28 11:07:21 +08:00
Shamim Rezaie
6ee2b972c9 MDL-63186 quiz_statistics: Remove q number from the summary row
Part of MDL-62610
2018-09-28 11:07:21 +08:00
Ryan Wyllie
29cc55079a MDL-63186 question: include random questions in statistics calculator
Part of MDL-62610
2018-09-28 11:07:21 +08:00
Jun Pataleta
a766f5dc00 Merge branch 'MDL-62811' of git://github.com/timhunt/moodle 2018-07-19 08:46:51 +08:00
Huong Nguyen
9d7ccae2d5 MDL-62814 Question: Improve column base display_header
Column base does not support custom tip if sortable is an array
2018-07-06 10:56:34 +07:00
Tim Hunt
b116f8b9ad MDL-62811 question bank: rendering shouldn't load individual questions 2018-07-05 17:00:45 +01:00
Andrew Nicols
a5c2308443 MDL-61407 question: Export step files in privacy 2018-05-07 07:09:30 +08:00
Andrew Nicols
d44064cdd6 MDL-61407 question: Add initial privacy implementation 2018-05-03 16:14:35 +08:00
Eloy Lafuente (stronk7)
e6c1e22197 Merge branch 'MDL-61715-master' of https://github.com/lethevinh/moodle 2018-04-26 22:22:43 +02:00
vinhle
8e0bebd1cd MDL-61715 question: qbank_chooser is not intelligent about headings 2018-04-24 16:11:47 +07:00
David Monllao
b704717847 Merge branch 'MDL-61138-master-require-context-id' of git://github.com/ryanwyllie/moodle 2018-04-19 11:18:47 +02:00
Ryan Wyllie
6768729e08 MDL-61138 question: external function to get random question set 2018-04-19 13:51:40 +08:00
Ryan Wyllie
81f43bc6d4 MDL-61138 question: add question exporters 2018-04-18 11:45:01 +08:00
Jun Pataleta
3a37a5e934 Merge branch 'MDL-61950-master' of git://github.com/ryanwyllie/moodle 2018-04-18 09:46:57 +08:00
Ryan Wyllie
40633c6310 MDL-61950 question: include random questions in statistics calculator 2018-04-12 13:36:41 +08:00
Simey Lameze
a9b3410632 MDL-61837 core_question: replace tag fields on tag modal 2018-04-09 11:46:46 +08:00
Simey Lameze
2cf7bde8e9 MDL-61364 question: adjust code and fix phpunit errors 2018-03-27 16:14:46 +08:00
Simey Lameze
e6890b1164 MDL-61364 question: add support for course tags on modal 2018-03-26 11:24:50 +08:00
Ryan Wyllie
ad54e6353a MDL-61465 question: add editing context to tag condition 2018-03-13 14:04:58 +08:00
Andrew Nicols
475d4345f9 Merge branch 'MDL-61380-master' of git://github.com/rezaies/moodle 2018-03-07 09:00:15 +08:00
Shamim Rezaie
2adefc21ac MDL-61380 Questions: Support selecting "random" by tag in question bank 2018-03-07 05:33:11 +11:00
Shamim Rezaie
2d7b0534d3 MDL-61503 Questions: Fix sql query to get questions by tags 2018-03-02 15:40:44 +11:00
Simey Lameze
e2795e8632 MDL-61444 question: replace all question tag capability checks 2018-02-19 14:21:59 +08:00
Andrew Nicols
1e41e6ddd9 Merge branch 'MDL-61135-master' of git://github.com/ryanwyllie/moodle 2018-02-12 11:34:56 +08:00
Ryan Wyllie
fff033322a MDL-61135 mod_quiz: add tag condition to question bank form 2018-02-08 02:44:17 +00:00
Ryan Wyllie
f33dc783f1 MDL-61135 mod_quiz: add question bank fragment 2018-02-08 02:44:16 +00:00
Ryan Wyllie
031a275288 MDL-61135 question: add tag filter condition 2018-02-08 02:44:16 +00:00
Andrew Nicols
e742f93303 Merge branch 'MDL-61132-master' of git://github.com/rezaies/moodle 2018-02-06 14:33:41 +08:00
Simey Lameze
fd5e2ead95 MDL-61133 core_question: add new question tags modal 2018-02-06 10:09:10 +08:00
Simey Lameze
680d5c5be6 MDL-61133 core_question: new submit_tags_form webservice 2018-02-05 10:58:04 +08:00
Simey Lameze
d587dc6f6f MDL-61133 core_question: add tags column class to question list 2018-02-05 10:57:04 +08:00
Shamim Rezaie
9275220de3 MDL-61132 Questions: Question Bank amendments to cope with Top category
* Display "Top" categories in the category filter when listing questions in the question bank
* Prevent editing "Top" categories
* Prevent deleting "Top" categories
2018-02-05 11:58:52 +11:00
Tim Hunt
bccad386b0 MDL-61077 question stats: make calculations more robust 2018-01-15 16:07:57 +00:00
sam marshall
a938e4096c MDL-60174 core_dml: fix miscellaneous incorrect recordset usage
The new recordset support for Postgres requires transactions and
will cause errors if recordsets are not closed correctly. This
commit fixes problems that were identified during unit tests, and
via some basic code analysis, across all core code. Most of these
are incorrect usage of recordset (forgetting to close them).
2017-11-27 11:10:33 +00:00
Marina Glancy
33683bc80c MDL-60281 general: function each() is deprecated in PHP7.2 2017-10-16 09:37:20 +08:00
Juan Leyva
e71687baf9 MDL-60198 webservice: Add missing MOODLE_INTERNAL checks 2017-09-21 13:01:28 +02:00
Damyon Wiese
663640f5b3 MDL-40759 icons: convert uses of pix_url to pix_icon
Also change filepicker to use scaled svgs instead of sets of custom pngs. The svgs are taken from font-awesome.
2017-03-17 15:52:17 +08:00