4141 Commits

Author SHA1 Message Date
Andrew Nicols
09a9b8f1ac MDL-61407 quizaccess: Add null_writer implementations 2018-05-03 16:14:38 +08:00
Andrew Nicols
2e85118fb3 MDL-61407 quiz: Add reports for quiz 2018-05-03 16:14:37 +08:00
Andrew Nicols
4c729982c7 MDL-61407 mod_quiz: Add initial privacy implementation 2018-05-03 16:14:36 +08:00
Eloy Lafuente (stronk7)
6d647878a5 NOBUG: Fixed file access permissions 2018-04-20 23:53:53 +02:00
Eloy Lafuente (stronk7)
cd8a0226de Merge branch 'MDL-61348-take2' of git://github.com/timhunt/moodle 2018-04-20 01:59:15 +02: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
1c26b3143d MDL-61138 mod_quiz: add question preview to random question modal 2018-04-19 13:51:41 +08:00
Eloy Lafuente (stronk7)
3271e83c6e Merge branch 'MDL-61614-master' of git://github.com/rezaies/moodle 2018-04-18 23:13:07 +02:00
Jun Pataleta
7c12fc2734 Merge branch 'MDL-61520-master' of git://github.com/lameze/moodle 2018-04-18 13:28:36 +08:00
Ryan Wyllie
6c057c77dc MDL-61138 mod_quiz: remove YUI random question modal 2018-04-18 11:45:01 +08:00
Ryan Wyllie
1e46fb428f MDL-61138 mod_quiz: use AMD modal for add random question 2018-04-18 11:45:00 +08:00
Ryan Wyllie
f046b9a4c5 MDL-61138 mod_quiz: create random question AMD modal 2018-04-18 11:45:00 +08:00
Shamim Rezaie
9da6f4d968 MDL-61614 Quiz: Restore tags for random questions 2018-04-18 13:07:08 +10:00
Shamim Rezaie
2a1855887d MDL-61614 Quiz: backup tags for random questions 2018-04-18 13:07:08 +10:00
Shamim Rezaie
3090719d7d MDL-61614 Quiz: Deleting a quiz slot should delete its random tags 2018-04-18 13:07:08 +10:00
Shamim Rezaie
66aa172cbb MDL-61614 Quiz: Maintain slot tags when editing random questions 2018-04-18 13:07:08 +10:00
Shamim Rezaie
d62793fdee MDL-61614 Quiz: save slot's tags in a table when adding random question 2018-04-18 13:07:08 +10:00
Shamim Rezaie
28e392a8b6 MDL-61614 Quiz: DB schema changes
Created a new DB table to store tag data for qiuz slots.
2018-04-18 13:07:08 +10:00
Matteo Scaramuccia
ef844148a9 MDL-60923 backup: Added $CFG->backuptempdir
The new setting will allow to host the temporary backup files
into a specific target directory. Defaults to '$CFG->tempdir/backup'.

Calling make_backup_temp_directory() checks that the required sub-directory
will be properly created under the new target directory.
2018-04-16 23:50:28 +02:00
Simey Lameze
de81dc8763 MDL-61520 quiz: fix references for xhtml on stats report 2018-04-11 10:46:13 +08:00
Tim Hunt
e37c1fe23d MDL-61348 quiz reports: fix incorrect groups averages
the averages were wrong if a user had mulitple enrolments in a course,
which can happen with some enrolment plugins.
2018-04-10 17:10:28 +01:00
Helen Foster
efefa2d905 MDL-61033 mod_quiz: Update lang string 2018-04-09 10:39:19 +08:00
Andrew Nicols
c36eea3d28 Merge branch 'MDL-61033-master' of https://github.com/nashtechdev01/moodle 2018-04-09 10:37:23 +08:00
Simey Lameze
13e2b19838 MDL-61364 core: remove param from question_has_capability_on calls 2018-03-28 08:53:41 +08:00
dinhloc
f4695ec722 MDL-61033 quiz: Editing a quiz while a preview is open
Editing a quiz while a preview is open in another browser tab can leads to a cryptic error that is hard to recover from
2018-03-27 10:47:32 +07:00
Jun Pataleta
edf88a3bb3 Merge branch 'MDL-61514-master' of git://github.com/rezaies/moodle 2018-03-22 10:52:53 +08:00
Shamim Rezaie
3b5ae9777d MDL-61514 Quiz: Fix restore error
Include mod/quiz/locallib.php to fix the restore error.
2018-03-22 09:57:35 +11:00
Eloy Lafuente (stronk7)
bb0ca2c4a3 Merge branch 'MDL-61605' of https://github.com/timhunt/moodle 2018-03-21 00:24:46 +01:00
Tim Hunt
d9b80a5e69 MDL-61605 quiz report: add missing index/key
Thanks to Patryk Szuta for the suggestion
2018-03-18 20:40:43 +00:00
Shamim Rezaie
ae88770b33 MDL-61514 Quiz: unit testing restore 2018-03-12 14:12:54 +11:00
Shamim Rezaie
33b7941d94 MDL-61514 Quiz: Backward compatibility for backups from 3.4 and earlier 2018-03-12 13:40:21 +11:00
Shamim Rezaie
9859359fbc MDL-61514 Quiz: Include random question's new data in backup and restore 2018-03-12 13:40:20 +11:00
Shamim Rezaie
c907987844 MDL-61514 Quiz: Display unavailable tags when editing random questions
When editing a random question, the form will display the tags that the random question
is configured to get questions from even if those tags do not exist anymore.
2018-03-12 13:40:20 +11:00
Shamim Rezaie
fb5343a00c MDL-61514 Quiz: unit tests for new functions in mod/quiz/locallib.php
unit testing
 - quiz_build_random_question_tag_json
 - quiz_extract_random_question_tags
 - quiz_extract_random_question_tag_ids
2018-03-12 13:38:12 +11:00
Shamim Rezaie
76d1f12d15 MDL-61514 Quiz: Add matchbyid arg to quiz_extract_random_question_tags
Let the quiz_extract_random_question_tags and quiz_extract_random_question_tag_ids functions
to decide whether they should use tag id to find tags or not.
2018-03-12 03:05:33 +11:00
Shamim Rezaie
2481a022d0 MDL-61514 Quiz: Make sure tag id is int when being saved as json 2018-03-11 19:07:04 +11:00
Shamim Rezaie
81053f8cbe MDL-61380 Quiz: Behat test for tag filter in the random question form 2018-03-07 07:34:11 +11:00
Shamim Rezaie
f3f21c995c MDL-61380 Quiz: Re-attempting the same "random" question by tag
Some question behaviours allow the same question to be re-attempted several times during a quiz attempt.
This commit takes care of the case where a "random" question is re-attempted during a quiz attempt.
2018-03-07 05:43:44 +11:00
Shamim Rezaie
2a1c9daccd MDL-61380 Quiz: build attempt from "random" questions by tag 2018-03-07 05:43:38 +11:00
Shamim Rezaie
82c67ac7f0 MDL-61380 Quiz: Fix url generation in notenoughrandomquestions exception 2018-03-07 05:33:11 +11:00
Shamim Rezaie
6650c66b59 MDL-61380 Questions: Editing configuration of existing random questions
Editing "random" questions follows a different procedure than adding them.
This commit takes care of editing a "random" question's configuration.
This commit also introduces mod_quiz\form\randomquestion_form, so mod_quiz
can edit random questions without having to use the form that is inside qtype_random.
2018-03-07 05:32:40 +11:00
Shamim Rezaie
4f964a1ca0 MDL-61380 Quiz,Questions: Adding "random" question by tag 2018-03-07 00:30:32 +11:00
Shamim Rezaie
4fa49cc647 MDL-61380 Quiz: Adding a random question 2018-03-01 11:50:52 +11:00
Shamim Rezaie
78b3870c50 MDL-61380 Quiz: Initial implementation of slot_random class 2018-03-01 11:41:15 +11:00
Shamim Rezaie
6fc5a830d4 MDL-61380 Quiz: Migrate "random" questions data into quiz_slots
Search for all "random" questions in the qbank and move the configuration data of each one to the quiz slots table.
2018-03-01 11:41:15 +11:00
Shamim Rezaie
b6c38f71e2 MDL-61380 Quiz: quiz_slots schema change
Adding questioncategoryid and includingsubcategories to the quiz_slots table
2018-03-01 11:41:14 +11:00
Simey Lameze
cf81447c74 MDL-61135 mod_quiz: deprecate unused fragment_view class 2018-02-13 10:48:22 +08:00
Simey Lameze
fc23bc85cf MDL-61135 mod_quiz: move fragment_view functions to custom_view class 2018-02-13 10:48:03 +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
d04f42254b MDL-61135 mod_quiz: add behat test for tag filtering in qbank modal 2018-02-08 02:44:18 +00:00