Commit Graph

155 Commits

Author SHA1 Message Date
Petr Skoda 62baf63445 MDL-49184 choice: fix block actions
The problems was that blocks editing breaks if you redirect
after if (data_submitted()) - all form actions must make sure
it is really their form, otherwise they may hijack the post from
block actions.

Note that this is not a problem for mforms, only legacy forms
are affected.
2015-02-17 16:58:34 +13:00
Marina Glancy ef467ee957 MDL-46691 mod_choice: apply filters to user input 2014-08-19 03:04:57 +02:00
Marina Glancy fbc4b77841 MDL-44321 events: cleaning up course_module_viewed event 2014-02-28 16:36:09 +08:00
Rossiani Wijaya 8c6ca6961a MDL-42339 - removed double formatting for set_title() and set_heading() 2014-02-05 14:47:23 +08:00
Ankit Agarwal e10ea84ed0 MDL-42962 events: Remove duplicate code from all course_module_viewed events 2013-12-03 14:24:32 +08:00
Adrian Greeve 8a94144332 MDL-40049 mod_choice: Replaced old add_to_log calls with event triggers.
Also added a generator for unit tests.
2013-10-01 10:36:13 +08:00
Rossiani Wijaya 8f0767f10c MDL-40732 choice: improve heading levels and styling 2013-08-20 16:05:01 +08:00
David Monllao 327c67a971 MDL-34466 mod_choice Replace all instances of get_context_instance() with respective context_XXXX class in mod/choice 2012-07-27 13:26:06 +08:00
Petr Skoda f0202ae9a2 MDL-30686 improve accuracy of qualified_me() by trying PAGE->url first
This should help SSL proxies and returning to current page after require_login().
2012-04-27 13:39:18 +02:00
Kanika Goyal d84e5f43d1 MDL-31856 Choice: if choice not open, responses inconsistently displayed 2012-03-23 08:56:13 +05:30
Sam Hemelryk 8ebbb06adf MDL-29189 mutlilang Reviewed the uses of course shortname and ensured things are being formatted consistently 2011-09-08 09:30:27 +12:00
Petr Skoda 18bd7573d6 MDL-26796 convert array parameter cleaning to new functions 2011-08-18 08:40:33 +02:00
sam marshall 6553cda7c9 MDL-26778 Change to completion should immediately affect nav block
Includes change so that updating completion resets the cache, and a debugging
warning if any module calls the completion viewed thing after it's already
printed navigation (which will mean navigation obviously doesn't update right
away). All existing modules that currently update after printing navigation
were updated.
2011-04-11 12:40:13 +01:00
Dan Marsden 32944e8d54 CHOICE MDL-24102 remove unused var - which should never be used anyway as it isn't cleaned!! 2010-11-19 03:42:33 +00:00
Sam Marshall bc499733f8 Choice: MDL-20440 Added completion support to Choice (mark completed when user makes choice) 2010-10-14 14:58:43 +00:00
Rossiani Wijaya f7e9300061 MDL-23867 - removing some extra whitespaces. 2010-08-20 02:40:13 +00:00
Rossiani Wijaya 9d624d6694 MDL-23867 - fixed errors when there are no enrolled users.
also fixed incomplete use of moodle_url (MDL-19805).
2010-08-19 10:35:30 +00:00
Rossiani Wijaya 315d4971f3 MDL-20508 - update choice module to fix accessibility issue and eliminate the use of table. 2010-07-23 03:55:06 +00:00
Dan Marsden 58a8f28862 Choice MDL-23448 lang tidy for users that can be enrolled - don't call them guests. 2010-07-21 10:11:18 +00:00
Dan Marsden 9fd2f3c1b0 Choice MDL-23248 - check if var exists before setting. 2010-07-13 23:25:19 +00:00
Dan Marsden ce4f56bd3e Choice MDL-23092 don't start page output before redirect. 2010-07-05 23:02:17 +00:00
Dan Marsden 7aba17d2af Choice MDL-23087 use consistant header with other modules 2010-07-05 22:42:46 +00:00
Petr Skoda df997f841f MDL-21782 reworked enrolment framework, the core infrastructure is in place, the basic plugins are all implemented; see the tracker issue for list of unfinished bits, expect more changes and improvements during the next week
AMOS START
    MOV [sendcoursewelcomemessage,core_admin],[sendcoursewelcomemessage,enrol_self]
    MOV [configsendcoursewelcomemessage,core_admin],[sendcoursewelcomemessage_desc,enrol_self]
    MOV [enrolstartdate,core],[enrolstartdate,enrol_self]
    MOV [enrolenddate,core],[enrolenddate,enrol_self]
    CPY [welcometocourse,core],[welcometocourse,enrol_self]
    CPY [welcometocoursetext,core],[welcometocoursetext,enrol_self]
    MOV [notenrollable,core],[notenrollable,core_enrol]
    MOV [enrolenddaterror,core],[enrolenddaterror,enrol_self]
    MOV [enrolmentkeyhint,core],[passwordinvalidhint,enrol_self]
    MOV [coursemanager,core_admin],[coursecontact,core_admin]
    MOV [configcoursemanager,core_admin],[coursecontact_desc,core_admin]
    MOV [enrolledincourserole,core],[enrolledincourserole,enrol_manual]
    MOV [enrolme,core],[enrolme,core_enrol]
    MOV [unenrol,core],[unenrol,core_enrol]
    MOV [unenrolme,core],[unenrolme,core_enrol]
    MOV [enrolmentnew,core],[enrolmentnew,core_enrol]
    MOV [enrolmentnewuser,core],[enrolmentnewuser,core_enrol]
    MOV [enrolments,core],[enrolments,core_enrol]
    MOV [enrolperiod,core],[enrolperiod,core_enrol]
    MOV [unenrolroleusers,core],[unenrolroleusers,core_enrol]
AMOS END
2010-06-21 15:30:49 +00:00
Patrick Malley a82fb0b629 Adding classes to lesson module 2010-05-03 17:35:21 +00:00
Petr Skoda 4f0c2d0009 MDL-21655 big scary enrolment and roles improvements - see tacker for list of changes, includes other minor fixes too 2010-03-31 07:41:31 +00:00
Petr Skoda a685593466 MDL-21233 moodle_url improvemewnts, code simplification, more diagnostics; fixed several regressions 2010-01-16 15:39:56 +00:00
Petr Skoda 5c2ed7e215 MDL-21198 $OUTPUT->single_button() resurrection, hopefully much easier to use than $OUTPUT->button(); fixed some regressions and code style improvements 2010-01-03 15:46:14 +00:00
Sam Hemelryk 92059c7ee5 mod MDL-21169 Removed update this module button and ensured there was a link in the settings block for it. 2009-12-23 01:57:55 +00:00
Sam Marshall f1035deb97 MDL-21009 Group selector must use absolute links in order to work with javascript off 2009-11-30 17:12:48 +00:00
Petr Skoda adef30995b MDL-20901 fixed input validation 2009-11-21 15:16:09 +00:00
Petr Skoda 1adbd2c350 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 14:55:15 +00:00
samhemelryk 97dcb8f88e mod-choice MDL-19805 Added PAGE->set_url calls and removed deprecated functions 2009-09-23 06:34:39 +00:00
samhemelryk 3180e717a2 choice MDL-19805 Updated print_header_simple and build_navigation to OUTPUT and PAGE equivalents 2009-09-08 02:05:11 +00:00
nicolasconnault d3fd549372 MDL-19805 upgraded calls to print_table, print_single_button, print_user_picture, print_container* and notice_yesno 2009-08-20 08:43:12 +00:00
nicolasconnault c73526ef34 MDL-19805 Upgraded calls to helpbutton, print_simple_box* and notify 2009-08-18 05:13:36 +00:00
nicolasconnault c57b95f7a0 MDL-19805 Converted print_box* to $OUTPUT->box* 2009-08-10 04:58:52 +00:00
nicolasconnault 0f4e7a3a93 MDL-19805 Converted all print_footer() calls 2009-08-06 14:20:08 +00:00
tjhunt 4e1132a8c5 forum: MDL-19119 missing requires now course/lib.php is not included everywhere.
Put in most of the obvious missing require_once($CFG->libdir . '/completionlib.php');
2009-05-08 09:00:41 +00:00
skodak 9b010a102e MDL-18910 full support for module intro editor with embedded images 2009-04-21 21:33:08 +00:00
skodak a8801a8bea MDL-18910 normalised module intro and introformat 2009-04-20 18:45:31 +00:00
danmarsden d12280bb03 MDL-17198 - show better confirmation of choice selection. 2009-02-09 09:51:06 +00:00
skodak 93f66983cc MDL-17773 new get_login_url() function - fixes missing httpslogin tweaks 2009-01-02 22:56:48 +00:00
danmarsden f2cb0ee899 MDL-16052 deleting responses using view.php not working. 2008-08-15 01:48:29 +00:00
danmarsden 5c657e7a3a MDL-14655 fix display of Choice when "show results after closed" is selected. 2008-08-11 04:19:34 +00:00
sam_marshall 18a2a0cb3a MDL-15498: Completion: added support for basic completion-on-view and on grade (where applicable) to assignment, choice, data, glossary, lesson, and resource. 2008-07-29 17:22:47 +00:00
nicolasconnault 407caeeb4b MDL-15105 Upgraded choice module to new dmllib syntax. Tested, and fixed a minor bug in report.php, for ODS export. 2008-06-04 06:42:54 +00:00
dongsheng c72813552a "MDL-14129, fix print_error call" 2008-05-23 07:03:17 +00:00
dongsheng 5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
moodler a61e418846 MDL-13478 Fixing a botched merge 2008-03-03 04:42:01 +00:00
moodler 392763dfda Merged tidyup of indenting 2008-02-15 02:43:38 +00:00