Commit graph

73161 commits

Author SHA1 Message Date
Simey Lameze
1bd4b9fcb4 MDL-49114 environment: add slasharguments warning message 2015-03-30 10:15:04 +08:00
Sergey Rozhkov
f1e1477142 MDL-37864 lib: Help icon work correctly in table header with sorting 2015-03-29 22:47:55 +03:00
Jean-Michel Vedrine
7e0551fc45 MDL-48880 mod_lesson: clean lesson_branch when a page is deleted 2015-03-29 21:46:05 +02:00
Jean-Michel Vedrine
4948b68ffe MDL-49474 mod_lesson: intro and introformat missing from backup/restore 2015-03-29 21:33:18 +02:00
Mark Nelson
0f523b2b58 MDL-49695 tool_behat: fixed URL 2015-03-27 16:50:39 -07:00
Jean-Michel Vedrine
e8a434b373 MDL-26689 mod_lesson: deprecate lesson dependency 2015-03-27 20:38:03 +01:00
Eric Merrill
9029ce75eb MDL-49693 atto: Clean textarea contents before inserting into editor 2015-03-27 12:27:00 -04:00
Eric Merrill
8e202bd80a MDL-49686 atto: Process style and class attributes in sub-functions
To ensure we only clean style and classes, first we select the inside
of those attributes and "replace" them with handler functions. Those
functions scan the actual attribute values for class or styles that
we want to exclude.

The first level regex has 3 groups. group1 selects everything in the
tag leading up to the attribute values, group2 has the attributes,
group3 has the trailing quote mark. We work on group2 then return
the combination of group1, group2, and group3.
2015-03-27 11:36:05 -04:00
Juan Leyva
ba62015b8e MDL-49606 webservices: Minor style fixes 2015-03-27 12:19:52 +01:00
Juan Leyva
ebfa74c799 MDL-49502 forum: Unit tests for forum_view 2015-03-27 11:33:35 +01:00
Juan Leyva
449a6304d4 MDL-49502 forum: Add the new function to the mobile service 2015-03-27 11:33:34 +01:00
Juan Leyva
4a1e44a155 MDL-49502 forum: New external function view_forum 2015-03-27 11:33:34 +01:00
Daniel Ureña
9b78f0e98b MDL-49606 webservices: Improved unit tests for get_users_courses 2015-03-27 10:12:47 +01:00
Eric Merrill
73e144334b MDL-49671 atto: Any pastes that don't have html should clean everything
Browsers may not provide html content in the clipboard object event
though it will really be pasted as such. This includes Firefox on
Windows, Internet Explorer, and some niche cases in Safari.

Because of this, we need to scrub the entire editor anytime we can't
intercept a paste event.

In some magical day in the future when there is better cross browser
support, we can undo this.
2015-03-26 23:31:05 -04:00
Eric Merrill
1b6ce030d3 MDL-49564 atto: Improve empty span removal
Paste from MS word, followed by cleaning, may leave many many unused
spans. Try to remove them.
2015-03-26 23:05:23 -04:00
Marina Glancy
4012617fb9 MDL-47337 course: merge section options during restore 2015-03-27 08:50:49 +08:00
Mark Nelson
16dfc32633 MDL-49645 core_backup: fixed 'expirythreshold' setting not being saved 2015-03-26 16:37:58 -07:00
Mark Nelson
810920b15d MDL-25721 core_question: added ability to order questions by dates 2015-03-26 16:21:27 -07:00
Costantino Cito
170717e2a9 MDL-49606 webservices: Return additional fields in get_users_courses 2015-03-26 22:02:36 +01:00
Yuliya Bozhko
734627a482 MDL-49669 badges: Handle curl redirects when posting to backpack
Signed-off-by: Yuliya Bozhko <yuliya.bozhko@totaralms.com>
2015-03-27 09:28:45 +13:00
Juan Leyva
51c378b116 MDL-49502 forum: New API function forum_view 2015-03-26 21:21:10 +01:00
Tim Hunt
f6579bea94 MDL-40992 question engine: new ways modify question usages
* A method to change the max mark for one question_attempt in the usage

* A method to replace one question in a usage with another, moving the
old question_attempt to the end.

* Methods to set and get metadata (string name value pairs) for each
question_attempt in the usage. This gets stored in the first step in a
way that should not interfere with anything else.
2015-03-26 17:46:48 +00:00
Tim Hunt
47be39ef41 MDL-40992 qbehaviour: new type method, can Qs can finish naturally 2015-03-26 17:46:48 +00:00
M Kassaei
1700bd4dea MDL-40992 quiz: let students to redo questions within an attempt 2015-03-26 17:46:47 +00:00
Tim Hunt
bb93fc24aa MDL-6340 quiz: avoid reusing random questions between attempts
There are several improvements over what we had before:

1. We track all the questions seen in the the student's previous
quiz attempts, so that when they start a new quiz attempt, they get
questions they have not seen before if possible.

2. When there are no more unseen questions, we start repeating, but
always taking from the questions with the fewest attempts so far.

3. A similar logic is applied with variants within one question.

There is lots of credit to go around here. Oleg Sychev's students Alex
Shkarupa, Sergei Bastrykin and Darya Beda all worked on this over
several years, helping to clarify the problem and shape the best
solution. In the end, their various attempts were rewritten into this
final patch by me.
2015-03-26 17:45:49 +00:00
Sergey Gorbatov
73985b1425 MDL-49380 enrol_cohort: Automatically create a group if needed 2015-03-26 21:12:52 +04:00
Rex Lorenzo
7519d366ef MDL-49595 backup: Behat tests for importing groups/groupings
* Also fixed a missing required parameter for an Exception and some coding standards issues.
2015-03-26 09:04:37 -07:00
Juan Leyva
c4f7bf29b2 MDL-49453 webservices: Added the new WS to the mobile service 2015-03-26 16:46:39 +01:00
Juan Leyva
e81f67ca62 MDL-49453 webservices: Unit tests for WS core_course_view_course 2015-03-26 16:46:38 +01:00
Tim Hunt
95ef9d8095 MDL-49547 question restore: avoid tag-related notices. 2015-03-26 15:31:36 +00:00
Juan Leyva
7aed00d51f MDL-49453 webservices: New WS core_course_view_course 2015-03-26 16:30:28 +01:00
Juan Leyva
2258883544 MDL-49453 course: Move view trigger event to a new API function 2015-03-26 16:30:15 +01:00
Juan Leyva
2016c7d4d0 MDL-49203 webservices: Unit tests for the new external function 2015-03-26 15:59:15 +01:00
Juan Leyva
ffe1579b0a MDL-49203 webservices: Add missing component testsuite declaration 2015-03-26 15:59:15 +01:00
Juan Leyva
e77a0f368f MDL-49203 webservices: Coding style fixes, ws added to the app service 2015-03-26 15:57:58 +01:00
Costantino Cito
be9854162f MDL-49203 webservices: New WS core_comment_get_comments 2015-03-26 15:57:21 +01:00
Juan Leyva
0be81772f0 MDL-49617 webservices: Additional tests for the new function 2015-03-26 15:55:23 +01:00
Juan Leyva
4e2e3c9528 MDL-49617 webservices: Return additional fields in get_assignments WS 2015-03-26 15:55:22 +01:00
David Mudrák
2b6f97fded MDL-49674 comment: Use correct format when displaying the comment
The plugin callback executed above can eventually change the format. We
need to use that one to have the formatting of the first AJAX response
consistent with following displays.
2015-03-26 12:55:18 +01:00
David Mudrák
a69ba70ddc MDL-49643 navigation: Fix API for extending navigation in local plugins 2015-03-26 12:17:15 +01:00
David Mudrák
4ad70aede0 MDL-49661 pluginfo: Do not consider missing version.php as correct
All plugins are required to contain valid version.php since Moodle 2.5.
It's time to get rid of this TODO.
2015-03-26 12:16:20 +01:00
Eloy Lafuente (stronk7)
20d38830ae weekly release 2.9dev 2015-03-26 10:47:44 +01:00
Eloy Lafuente (stronk7)
293610873a Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2015-03-26 10:47:34 +01:00
David Monllao
cfb32192d6 MDL-47002 editor_atto: Remove all after html when pasting 2015-03-26 16:15:29 +08:00
David Monllao
d784f5edc3 MDL-47002 editor_atto: Clean the comments separately 2015-03-26 14:37:55 +08:00
Dave Cooper
b1c5888daf MDL-49520 libraries: Update password_compat library 2015-03-26 10:05:00 +08:00
Tony Levi
3e45fb4151 MDL-49294 logging: Cleanup runs in smaller chunks
Just running a huge log cleanup will probably cause big problems on large sites.
So we break this down into smaller day-by-day chunks until reaching the target.
2015-03-26 12:00:06 +10:30
Eloy Lafuente (stronk7)
cca1142f0e Merge branch 'MDL-49543' of https://github.com/totara/openbadges 2015-03-26 00:51:01 +01:00
Yuliya Bozhko
f951916362 MDL-49543 badges: Add URL params to criteria settings page
Signed-off-by: Yuliya Bozhko <yuliya.bozhko@totaralms.com>
2015-03-26 08:48:02 +13:00
Eloy Lafuente (stronk7)
54c40ffe75 Merge branch 'MDL-47002-int-master' of git://github.com/merrill-oakland/moodle 2015-03-25 18:17:17 +01:00