Ryan Wyllie
1c26b3143d
MDL-61138 mod_quiz: add question preview to random question modal
2018-04-19 13:51:41 +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
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
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
Ryan Wyllie
e6743b4b80
MDL-61135 mod_quiz: remove YUI question bank dialogue
2018-02-08 02:44:17 +00: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
171d7919b3
MDL-61135 mod_quiz: add question bank AMD modal
2018-02-08 02:44:16 +00:00
Ryan Wyllie
f33dc783f1
MDL-61135 mod_quiz: add question bank fragment
2018-02-08 02:44:16 +00:00
Eloy Lafuente (stronk7)
496e80e1f5
MDL-52832 quiz: sql fixing couple of incorrect group by uses
2018-02-06 18:30:11 +01:00
David Monllao
7416d00ad2
Merge branch 'MDL-52832-master' of https://github.com/lucaboesch/moodle
2018-02-06 12:18:27 +01:00
Andrew Nicols
e742f93303
Merge branch 'MDL-61132-master' of git://github.com/rezaies/moodle
2018-02-06 14:33:41 +08:00
Andrew Nicols
a88658fbf0
Merge branch 'MDL-51189-master' of git://github.com/rezaies/moodle
2018-02-05 15:43:47 +08:00
Shamim Rezaie
3b8f3198de
MDL-61132 Quiz: "Random" question from "Top" categories
...
* Support for adding ranodm questions from "Top" categories
2018-02-05 11:58:57 +11:00
Luca Bösch
bcf4a7f076
MDL-52832 quiz: timeclose in activities block looks after overrides.
2018-02-01 22:52:19 +01:00
Eloy Lafuente (stronk7)
b878578d90
Merge branch 'MDL-61252-master' of git://github.com/andrewnicols/moodle
2018-01-23 02:13:10 +01:00
Andrew Nicols
caa9cb7124
MDL-61252 mod_quiz: Fix ambiguous behat check
2018-01-23 08:21:22 +08:00
Shamim Rezaie
ce8c0126a9
MDL-51189 Quiz: Edit overrides when quiz is not available to students
...
The $active variable should simply be used to dim the text, nothing more.
2018-01-23 10:52:19 +11:00
Eloy Lafuente (stronk7)
a610100586
Merge branch 'MDL-61077' of git://github.com/timhunt/moodle
2018-01-22 02:26:04 +01:00
Tim Hunt
bccad386b0
MDL-61077 question stats: make calculations more robust
2018-01-15 16:07:57 +00:00
David Monllao
f4a30c5fdf
Merge branch 'MDL-41090_rebased' of https://github.com/andrewhancox/moodle
2018-01-15 15:52:29 +01:00