Commit Graph

87 Commits

Author SHA1 Message Date
tjhunt 997dbc1d6a question bank: MDL-19826 Tidy up. 2009-07-15 04:04:23 +00:00
tjhunt 6ab41ced9f question bank: MDL-19826 Error when deleting a lot of questions
We were stupidly putting the list of questionids in the URL, even though this was a post forum.
2009-07-15 03:33:27 +00:00
tjhunt cb06574d5b question bank: MDL-18822 Highlight the last question you edited in the list
Helpful if you need to edit a lot of questions - saves you from losing your place.
Idea and patch by Oleg Sychev.
2009-06-05 08:30:35 +00:00
tjhunt 901c4aae9f question bank: MDL-14434 Cannot edit the only question category in a context. 2008-11-27 11:50:20 +00:00
tjhunt 32101da4c8 MDL-14593 - delete icons in the question bank do not work. This was a regression caused by part of the fix for MDL-13982. I hvae reverted that bit for now, pending a better solution. 2008-05-27 10:35:14 +00:00
tjhunt c31957babf MDL-10899 - There is some data associated with some questons that needs to be udpated when moving questions between categories. This commit deals with subquestions, and lays the foundation for fixing the other problem - datasets - which is files as bug 14767. 2008-05-09 15:05:38 +00:00
tjhunt 029f59fbd1 MDL-13982 - Performance problem when deleting questions from large question banks. Thanks to Michael Spall for this fix. Merged from MOODLE_18_STABLE.
At the same time, remove direct references to $_REQUEST and $_POST in this code.
2008-04-23 13:45:40 +00:00
dongsheng dbb82a47ca MDL-14128, remove all uses of error(get_string()) 2008-04-02 06:09:56 +00:00
tjhunt 3747744140 MDL-13189 - replace the $QTYPE_MENU global with a function call, so that we can set up the language strings later, after $COURSE is initialised. This ensures that the quesion names appear in the right language. 2008-02-28 12:52:59 +00:00
jamiesensei 1fe2c24de3 MDL-13298 "Question bank displays always page 1 after adding new question" this was caused because the question creation page was redirecting back to the question back edit page and telling it to change to the category of the question that was just saved. This was causing the edit page to go back to page 0 of the new category. Now we only go back to page 0 if the category has actually changed. 2008-02-05 12:08:38 +00:00
tjhunt e1a0eb49d6 MDL-12280 - Question bank forgets sort order when adding multiple questions to a quiz. 2007-11-20 15:54:21 +00:00
tjhunt 06d7ef9cd3 Remove a developer debug notice and save a database query. 2007-11-20 14:46:33 +00:00
jamiesensei be801b8b3a MDL-11139 "Need to pass courseid or cmid to this script when moving questions between categories " added COURSE to globals in function that redirects browser to contextmoveq page. 2007-10-03 04:42:57 +00:00
tjhunt 314fc083d9 MDL-10824 - spaces in javascript URLs are not strictly valid. Merged from MOODLE_18_STABLE. 2007-09-19 17:44:52 +00:00
jamiesensei 8f0f605ddf moved question_make_default_categories function to questionlib.php since it is needed by other modules outside the question bank editing interface. 2007-09-18 11:23:29 +00:00
jamiesensei e7e62d45be Fix for MDL-10823 Access to question edit page denied from quiz preview screen. 2007-08-14 04:22:05 +00:00
moodler 871ab9a3e2 Removed usage of table aliases with "as" as per MDL-10808 2007-08-11 14:28:36 +00:00
jamiesensei 271e6decda merging MOODLE_19_QUESTIONS with HEAD 2007-08-09 21:51:09 +00:00
tjhunt d0e88092e9 MDL-10130 - Thanks to Adriane Boyd. 2007-06-15 10:25:09 +00:00
tjhunt da1cc34073 MDL-10089 - Cannot delete questions from question bank - Thanks to Adriane Boyd for the fix. 2007-06-12 11:13:49 +00:00
moodler 335768f419 Removed some RQP code no longer needed MDL-9600 2007-05-24 07:10:22 +00:00
tjhunt 214f6330f9 MDL-9881 - Attempting to delete large number of questions fails due to long URL - Merged from MOODLE_18_STABLE. 2007-05-22 14:04:06 +00:00
tjhunt d1f2b9e130 Switch a form from post to get, since that is more appropriate. 2007-05-22 13:24:51 +00:00
jamiesensei 85c375c3f8 added function callbacks for module specific controls to question bank. 2007-05-07 16:57:23 +00:00
jamiesensei 64eeaf4753 removed all session fromurl and returnurl stuff from question bank editing code. Returnurls are now passed as get/post params. 2007-05-07 07:13:14 +00:00
jamiesensei 561fe61df3 return to the proper page after editing a question in the question bank. 2007-05-07 06:35:33 +00:00
jamiesensei 986effb653 pass the category list page param from page to page in question bank editing pages. 2007-05-07 05:53:20 +00:00
jamiesensei 7bc26c8f6d changes to pass category id from page to page in question bank editing. 2007-05-07 04:55:55 +00:00
jamiesensei 36e298bc58 removed more session stuff from question list and category form in question bank display code 2007-05-04 10:46:33 +00:00
jamiesensei 9ab3847595 tightening up reg expressions used for submitted data a bit 2007-05-04 08:33:28 +00:00
jamiesensei 9ab75b2bcc passing cmid to question.php and removed use of session modform var. Question.php now independent of quiz module. Small improvement to displayed breadcrumbs. 2007-05-04 05:47:59 +00:00
jamiesensei b72ff47685 moved question sort order and paging params to be passed from page to page as get params instead of being saved in session var. 2007-05-03 10:10:01 +00:00
jamiesensei 86909ce047 small fix to get question code to return to correct place after creating a new question. 2007-05-03 05:17:07 +00:00
jamiesensei efe839dc12 Removed 'edit category' redundant button 2007-04-27 11:27:57 +00:00
tjhunt e3aea79afe MDL-9565 - Fix error in previous commit. Merged from MOODLE_18_STABLE. 2007-04-25 17:59:53 +00:00
tjhunt 7d87171ba9 MDL-9565 - Question preview links don't work in developer debug mode, and not XHTML strict. Merged from OU Moodle. 2007-04-24 16:59:32 +00:00
tjhunt dcc2ffde63 MDL-9082 - moodle/question:manage does not let you create questions. Also: * remove useless option from print_question_icon * use the right module context in question_list * a bit of XHTML strrrict in question_list Merged from MOODLE_18_STABLE. 2007-04-11 22:57:46 +00:00
thepurpleblob 5fd8f999d3 A couple of changes to Pierre's calculated question import/export
export_process and import_process flags now apply to all questions
and what looked like a development print_r has been commented out.
2007-03-28 11:58:44 +00:00
tjhunt 4323d02959 Give the question bank code sensible PHPdocumentor package names. 2007-03-19 17:22:46 +00:00
tjhunt 70ed76670e Use the right string processing functions when outputting question names. 2007-03-13 16:20:41 +00:00
tjhunt b030a630c0 MDL-8764 - In menus, show question categories from this course first, then published categories from other courses. Merged from MOODLE_18_STABLE. 2007-03-05 18:05:51 +00:00
toyomoyo 5bff81aba6 replacing fieldsets with divs in small forms 2007-03-02 02:16:27 +00:00
tjhunt 3ed998f343 MDL-6773 - eliminate duplicate code for getting a list of question categories. Merged from MOODLE_18_STABLE. 2007-03-01 09:45:53 +00:00
tjhunt 5eb266d8aa Improve quiz editing screen layout a little bit based on a usability suggestion in the forums.
Also, fix uppercase tag names in the tab row CSS, which did not work at DEVELOPER debug level.

Merged from MOODLE_18_STABLE.
2007-02-27 14:01:46 +00:00
tjhunt 624cbc9c26 MDL-4793 - Option to show question text in the question bank. Also, fix layout problems on the quiz editing screen. Merged from MOODLE_18_STABLE. 2007-02-20 01:48:09 +00:00
tjhunt b28e2577d7 MDL-8145 - Add more options to the add random questions dropdown. 2007-02-19 04:24:14 +00:00
tjhunt 901011fd4d MDL-8205 - Layout of quiz editing screen not right 2007-01-18 17:38:51 +00:00
vyshane 0927589412 Xhtml fixes for MDL-7861. 2007-01-09 09:07:16 +00:00
vyshane 0fd5feef05 Xhtml fixes for MDL-7861. 2007-01-08 07:58:22 +00:00
skodak d2ce367fb9 MDL-8062 Remove name attribute from <form> and related javascript code cleanup (tested with FF, IE, Konq and Opera) 2007-01-06 19:22:58 +00:00