12962 Commits

Author SHA1 Message Date
Tim Hunt
2cf5ab1028 MDL-30545 messaging prefs: show all relevant message providers.
Some message providers have an associated capability. For example
the mod/quiz:emailconfirmsubmission capability. At the moment,
we only show the preferences for the capabilities that the user
has in the system context.

That does not work for the example capability above. Typically
the capability will be overridden in one quiz, to allow for
Students, and the user will have the Student role in the course
context. Therefore, this message type does not appear on the
preferences page.

This fix corrects the logic, so that all message types that are
to the current user are displayed.
2012-10-23 18:41:43 +08:00
Sam Hemelryk
2ea4312a23 MDL-31683 mod_assign: Fixed up whitespace and cap check changes as required 2012-10-17 11:17:53 +08:00
Sam Hemelryk
7e5c720495 Merge branch 'MDL-31683' of git://github.com/Lightwork-Marking/moodle 2012-10-17 10:57:36 +08:00
Paul Charsley
1378838eca MDL-31683 added mod_assign_get_assignments web service function 2012-10-17 13:21:44 +13:00
Sam Hemelryk
f7de90a74a MDL-33857 fixed up whitespace 2012-10-16 13:32:34 +08:00
Sam Hemelryk
2bbf03ce3b Merge branch 'wip-MDL-33857-master' of git://github.com/marinaglancy/moodle 2012-10-16 13:31:44 +08:00
Dan Poltawski
5f7ac316fb MDL-21801 - mod_lesson: version bump
To reflect the new (ppt-less) state
2012-10-16 10:30:45 +08:00
Dan Poltawski
399fd63052 Merge branch 'MDL-21801_b' of git://github.com/rwijaya/moodle 2012-10-16 10:29:49 +08:00
Sam Hemelryk
efd6156e4d Merge branch 'MDL-35726' of git://github.com/netspotau/moodle-mod_assign 2012-10-16 10:16:26 +08:00
Sam Hemelryk
ee17d12db1 Merge branch 'wip-MDL-25275-master' of git://github.com/abgreeve/moodle 2012-10-16 10:11:04 +08:00
Damyon Wiese
f42010d10d MDL-35711: Minor comment formatting fixes. 2012-10-16 10:08:36 +08:00
Ruslan Kabalin
184a5ef9e5 MDL-35711 mod_assign Trigger submission event when submit button click is not requred 2012-10-16 10:08:32 +08:00
Dan Poltawski
eb214fdb4e MDL-35710 - mod_assign: bump version for new events 2012-10-16 10:04:59 +08:00
Dan Poltawski
eed6cd1987 Merge branch 'MDL-35710' of git://github.com/netspotau/moodle-mod_assign 2012-10-16 10:01:46 +08:00
Dan Poltawski
f186ad1f90 Merge branch 'wip-MDL-35339-master' of git://github.com/marinaglancy/moodle 2012-10-15 17:19:44 +08:00
Aparup Banerjee
dd55ec309b MDL-35418 fixed up whitespaces 2012-10-15 16:36:45 +08:00
Aparup Banerjee
43d333cb58 Merge branch 'master_MDL-35418' of git://github.com/danmarsden/moodle 2012-10-15 16:36:38 +08:00
Dan Poltawski
317db10e5d Merge branch 'wip-MDL-35895-master' of git://github.com/marinaglancy/moodle 2012-10-15 16:07:24 +08:00
Dan Marsden
d83566565c MDL-35418 SCORM: always set children param even if empty. Always set incomplete param 2012-10-15 19:25:01 +13:00
Dan Marsden
995e322e75 MDL-35418 SCORM: remove dumb function, include sequencinglib.php as scorm_13lib.php still calls some of the functions. 2012-10-15 19:25:01 +13:00
Dan Marsden
92be6fa471 MDL-35418 SCORM: coding guideline tidy - removes a few unused vars as well. 2012-10-15 19:25:01 +13:00
Mayank Gupa
41e205cd8e MDL-35418 SCORM: Improve SCORM 2004 support
GSOC project to improve SCORM 2004 support, includes MDL-32835 rewrite scorm_get_toc
2012-10-15 19:25:01 +13:00
Marina Glancy
7f4550529a MDL-35895 Correctly build return to course link in book module 2012-10-15 14:17:36 +08:00
Marina Glancy
722e6ba947 MDL-35339 Deprecate add_mod_to_section(), create new function course_add_cm_to_section()
Function add_mod_to_section() has very confusing arguments when object  looks like record from
table course_modules but field ->section refers to relative section number (course_sections.section).
In table course_modules the field section refers to course_sections.id.
Also add_mod_to_section() does not update table course_modules and does not call rebuild_course_cache()
which developer can forget to do afterwards.

- Added function course_add_cm_to_section()
- In the core code add_mod_to_section() is replaced with course_add_cm_to_section()
- Function add_mod_to_section() is deprecated
2012-10-15 14:08:13 +08:00
Marina Glancy
71a56e08c8 MDL-35339 avoid using get_all_sections(), get_all_mods() and field section.sequence directly 2012-10-15 14:08:13 +08:00
Dan Poltawski
6bea7da1ab Merge branch 'wip-MDL-35661-master' of git://github.com/marinaglancy/moodle 2012-10-15 13:31:10 +08:00
Damyon Wiese
26af81027f MDL-35726: Use a different form identifier for each form when using "Save and next"
This prevents a bug where the next student feedback will default to the values that
were on the last submitted form. This is a similar case to having multiple instances
of the same form on the same page - each one needs a unique identifier to distinguish
between them. In this case I include the $rownum which changes as you go to each student
in the list.
2012-10-12 12:03:40 +08:00
Damyon Wiese
1defeabf2c MDL-35710: Minor comment formatting fixes 2012-10-12 08:45:15 +08:00
Ruslan Kabalin
c14685e80f MDL-35710 mod_assign Add submission_editable paramenter to event object
This will allow to keep assessable_submitted event object structure consistent
throughout the system, while particular modules could define own parameters
within params variable.

This module defines submission_editable parameter to reflect if user can edit
submission before assessment has been done.
2012-10-12 08:40:42 +08:00
Ruslan Kabalin
f04523f07e MDL-35710 mode_assign Make submission event trigger name more precise 2012-10-12 08:40:42 +08:00
Adrian Greeve
c0e98e83c8 MDL-25275 - mod/data - Added a check box to eliminate date searches if desired. 2012-10-11 11:27:26 +08:00
Eloy Lafuente (stronk7)
f6bfcaf6b3 Merge branch 'master_MDL-34848' of git://github.com/danmarsden/moodle 2012-10-10 09:57:00 +02:00
Dan Marsden
828b6925c0 MDL-34848 SCORM: rewrite over complicated scorm_print_overview to use a single loop and make a single check for attemptstatus 2012-10-10 20:38:06 +13:00
Marina Glancy
43aadf0401 MDL-33857 Increase performance of queries for Server files repository (small improvements) 2012-10-10 15:21:27 +08:00
Marina Glancy
b8de262139 MDL-33857 Increase performance of queries for Server files repository
- file_info class now has new methods get_non_empty_children and count_non_empty_children; added default implementation;
- all core classes extending file_info have their implementation of those methods;
- class repository_local_file used for caching get_children() results is removed;
- class repository_local rewritten to use new methods from file_info;
- added caching of retrieved modules in file_browser::get_file_info_context_module() - this query is slow and executed multiple times on big servers
2012-10-10 15:21:26 +08:00
Aparup Banerjee
42239bd24c Merge branch 'WIP-MDL-35724-master_quiz' of git://github.com/nadavkav/moodle 2012-10-09 14:05:04 +08:00
Marina Glancy
fde6f79fae MDL-35661 Loading of plugin settings for modules (plugininfo_mod) 2012-10-09 09:56:42 +08:00
Eloy Lafuente (stronk7)
f503a3cd5c Merge branch 'MDL-35436' of https://github.com/raymondAntonio/moodle 2012-10-09 00:36:00 +02:00
Eloy Lafuente (stronk7)
f064d2ef69 Merge branch 'MDL-34794' of git://github.com/raymondAntonio/moodle 2012-10-09 00:06:50 +02:00
Eloy Lafuente (stronk7)
5d3559f7b5 Merge branch 'master_MDL-34848' of git://github.com/danmarsden/moodle 2012-10-09 00:02:41 +02:00
Eloy Lafuente (stronk7)
0b85584480 Merge branch 'MDL-35519_book_cancel' of git://github.com/andyjdavis/moodle 2012-10-08 23:07:25 +02:00
Nadav Kavalerchik
e0ce765323 MDL-35724 - Move Question Marks block to the left (Question Bank page),in RTL mode 2012-10-08 11:35:10 +02:00
Nadav Kavalerchik
fd901cf0e2 MDL-35724 - Right align "Question Type" label in Quiz Editing page, when in RTL mode 2012-10-08 11:35:09 +02:00
Aparup Banerjee
1c5f03fd4a Merge branch 'WIP-MDL-35723-master_quiz' of git://github.com/nadavkav/moodle 2012-10-08 17:15:41 +08:00
Aparup Banerjee
d26a3d2b6f Merge branch 'MDL-35728' of git://github.com/netspotau/moodle-mod_assign 2012-10-08 15:23:20 +08:00
Aparup Banerjee
9f8ffac3b8 Merge branch 'wip-MDL-34448-master' of git://github.com/abgreeve/moodle 2012-10-08 14:20:04 +08:00
Sam Hemelryk
2a00249df5 Merge branch 'MDL-35763' of git://github.com/netspotau/moodle-mod_assign 2012-10-08 10:44:10 +13:00
Sam Hemelryk
da2ebe0474 Merge branch 'MDL-35764' of git://github.com/netspotau/moodle-mod_assign 2012-10-08 10:40:35 +13:00
Sam Hemelryk
9201c33bb7 Merge branch 'MDL-33646-master' of git://github.com/ankitagarwal/moodle 2012-10-08 10:22:18 +13:00
Rossiani Wijaya
15cf7d66d0 MDL-21801 Lesson Module: Removing import power point functionality 2012-10-05 15:31:30 +08:00