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
Andrew Hancox
f3d9872aa3
MDL-41090 questions: Allow embedding files in response comments
2018-01-15 11:19:06 +00:00
Juan Leyva
01a79b4e86
MDL-60908 mod_quiz: Return question state only when configured
...
The question state should be returned following the quiz review options
settings.
2018-01-09 16:54:32 +08:00
David Monllao
b5e7264543
Merge branch 'MDL-61107' of git://github.com/timhunt/moodle
2018-01-02 08:34:39 +01:00
David Monllao
ce37a8cc7e
MDL-51089 mod_quiz: Hide first page last node
2017-12-28 10:15:08 +01:00
David Monllao
f108433bcb
Merge branch 'MDL-50246-master' of https://github.com/lucaboesch/moodle
2017-12-27 17:54:57 +01:00
Tim Hunt
d2e1aa76e1
MDL-61107 quiz editing: handle invalid Maximum grade input
2017-12-22 13:35:29 +00:00
Luca Bösch
4bfcdfed4e
MDL-50246 quiz: Add selected questions to quiz btn disabled 0 selected
2017-12-22 09:25:12 +01:00
Luca Bösch
11f2cec1ac
MDL-51089 quiz: "Add" menu in edit quiz more keyboard accessible
2017-12-22 09:23:07 +01:00
David Monllao
d41203c55f
Merge branch 'MDL-61045' of git://github.com/timhunt/moodle
2017-12-19 06:43:17 +01:00
Simey Lameze
7a1a9ec635
MDL-57431 mod_quiz: remove unnecessary class from selector
2017-12-19 12:47:43 +08:00
Eloy Lafuente (stronk7)
dc3f4ac929
Merge branch 'MDL-60750-master' of git://github.com/lameze/moodle
2017-12-19 00:56:14 +01:00
Eloy Lafuente (stronk7)
10d22cceb5
Merge branch 'MDL-56932-master' of git://github.com/lameze/moodle
2017-12-18 11:40:17 +01:00