Andrew Nicols
95cc9d3b53
Merge branch 'wip-mdl-55329-m30' of https://github.com/rajeshtaneja/moodle into MOODLE_30_STABLE
2016-08-09 14:28:19 +08:00
Rajesh Taneja
7c74b0aeb8
MDL-55329 behat: PyStrings should end with : (colon)
2016-07-27 07:02:34 +08:00
Stephen Bourget
485f8744a4
MDL-55255 mod_data: prevent direct script access to lib files.
2016-07-25 09:40:20 +01:00
Adrian Greeve
e0bf071213
MDL-54962 mod_data: Approval status is now translated.
...
It was using hardcoded English. Now it uses get_string.
2016-07-11 08:20:43 +08:00
Stephen Bourget
14c7153625
MDL-54910 mod_data: Open dates should be before close dates
2016-06-23 17:34:14 -04:00
Adrian Greeve
4f8ae68644
MDL-45427 mod_data: Inserting tags into templates.
...
Allows tags to be inserted into the editor without
having to touch Atto at all.
2016-05-25 15:29:47 +08:00
Mark Nelson
ac6d4ce728
MDL-54125 mod_data: fixed PHP notice
...
Also removed unused variables.
2016-05-11 13:02:01 +08:00
Adrian Greeve
77552e5f5b
MDL-53402 mod_data: field values of 0 are now displayed.
2016-05-03 15:06:46 +08:00
Adrian Greeve
8dc2647f0f
MDL-53402 mod_data: Added custom validation code for data fields.
...
Added custom validation to radiobutton, menu, and checkbox.
2016-05-03 12:53:36 +08:00
Adrian Greeve
a476c985a8
MDL-53402 mod_data: Behat test for entering zero in required fields.
2016-05-02 13:37:55 +08:00
Adrian Greeve
2e01123bf4
MDL-53402 mod_data: Required fields can contain 0.
...
The number and text field would not accept 0 as a
valid response.
2016-05-02 13:37:36 +08:00
Dan Poltawski
63a1a289e9
Merge branch 'wip-MDL-49861-30' of git://github.com/abgreeve/moodle into MOODLE_30_STABLE
2016-04-04 12:10:18 +01:00
Adrian Greeve
d94f588b67
MDL-49861 mod_data: Behat step to test adding records.
...
Clicking 'Save and add another' should clear the form.
2016-03-30 16:28:35 +08:00
Adrian Greeve
dc844c1eae
MDL-49861 mod_data: Save and add another button clears fields.
2016-03-30 16:28:14 +08:00
Adrian Greeve
02c3b88fcd
MDL-53538 mod_data: Unit test for data_get_advance_search_ids
2016-03-22 14:27:24 +08:00
Adrian Greeve
f186db050c
MDL-53538 mod_data: Show no records message instead of error.
...
When there are no records in the database module and a user
does an advanced search. Show a message that there are no entries
in the database.
2016-03-22 14:27:09 +08:00
Cameron Ball
314d105c16
MDL-52651 htmlpurifier: Append rel=noreferrer to links.
...
Thank you to Zachary Durber for originally working on this issue.
2016-03-08 02:07:54 +01:00
David Mudrák
de60fc23ae
MDL-52727 mod_data: Improve output of the form fields values
...
This issue mostly affects the search form fields. Submitted values for
these fields are typically obtained via optional_param() with
PARAM_NOTAGS specified as the parameter type - see parse_search_field()
methods. Such values themselves are not safe enough to be printed back
directly into the HTML as they might contain malicious code.
While working on the patch, some other places with weak protection were
detected and fixed.
In case of the itemid parameters, explicit clean_param() is added to
make sure we cast the value as an integer. That should make the s()
unnecessary but it was added anyway as an extra protection (just in case
the code flow changes or the parts of the code are re-used elsewhere).
2016-03-07 22:08:26 +01:00
Michael de Raadt
de7454d413
MDL-52835 mod_data: Correct MIME type for JS template
2016-01-22 09:55:28 +11:00
Jun Pataleta
2217e2fea9
MDL-52355 mod_data: Added Gregorian hour and minute values
2015-12-23 09:56:46 +08:00
Shamim Rezaie
68927e83e5
MDL-52355 mod_data: Make date field respect the calendar type in use
...
Updated the date subplugin to consider that the input date element
values might be for any calendar type and not just the Gregorian
calendar.
2015-12-23 09:56:46 +08:00
David Monllao
4d56fe7d60
Merge branch 'MDL-52081-30' of git://github.com/marinaglancy/moodle into MOODLE_30_STABLE
2015-12-10 17:15:54 +08:00
Marina Glancy
696f3dcc83
MDL-52081 forms: Use __construct() for constructors
2015-12-10 13:45:16 +08:00
Marina Glancy
3af4f54efb
MDL-52335 mod_data: php7 compatibility in variable syntax
2015-12-03 09:33:24 +08:00
Eloy Lafuente (stronk7)
4e342f5397
MDL-52140 upgrade: add 3.0.0 separation line to all upgrade scripts
2015-11-17 17:11:15 +01:00
Johannes Burk
64b9afa6a5
MDL-41643 datafield_checkbox: Add line breaks behind checkbox options.
...
Add line a break behind each checkbox option in advanced search.
2015-11-14 13:48:20 +01:00
Eloy Lafuente (stronk7)
2e144835bb
MDL-52059 versions: bump all versions and requires near release
...
version = planned 2015111600 release version
requires= current 2015111000 rc3 version
2015-11-10 12:33:52 +01:00
Adrian Greeve
4a9a9bad73
MDL-51486 mod_data: Unit test update for item ratings.
...
Additional checks that access is available for item ratings
on records that have a group id of zero (all participants).
2015-11-04 10:12:39 +08:00
Adrian Greeve
ca3e8022d1
MDL-51486 mod_data: Can view rating information.
...
When students are given the appropriate permissions
to view ratings, in the situation where there are
separate groups. The students can view the ratings
of an entry that is in the all participants group.
2015-11-04 10:12:39 +08:00
Helen Foster
da6ecfd8c1
MDL-52018 lang: Merge English strings from the en_fix language pack
2015-11-02 22:12:06 +01:00
Andrew Nicols
62029ba7f4
Merge branch 'MDL-51565-master' of git://github.com/jleyva/moodle
2015-10-16 09:35:23 +08:00
Juan Leyva
5b587c7570
MDL-51565 webservice: Fix return types definitions
...
This commit also format the activity name via external_format_string in
some cases
2015-10-12 13:24:49 +02:00
Mark Nelson
0bfafc5ba0
MDL-46455 mod_*: added restore mapping to events
2015-10-11 18:14:57 -07:00
Johannes Burk
8c3b27d4b2
MDL-49750 mod_data: fix updating file/picture fields breaks references
...
Use file_save_draft_area_files on file/picture update and
set content to null if file was removed.
2015-10-05 11:42:53 +02:00
Eloy Lafuente (stronk7)
46e92173fd
Merge branch 'wip-MDL-51259-master' of git://github.com/abgreeve/moodle
2015-09-24 15:37:12 +02:00
Andrew Nicols
be09ca85ef
MDL-50664 mod_data: Fix for unit test failure
2015-09-23 09:27:30 +08:00
Dan Poltawski
abd3fdc977
Merge branch 'wip-MDL-51108-master' of git://github.com/abgreeve/moodle
2015-09-22 11:48:49 +01:00
Dan Poltawski
0730ddc2ad
Merge branch 'MDL-50664-master' of git://github.com/ryanwyllie/moodle
2015-09-22 10:39:33 +01:00
Adrian Greeve
453adb1adf
MDL-51108 mod_data: Addition to behat test for Lat. and Long.
2015-09-18 07:33:12 +08:00
Adrian Greeve
d25043270c
MDL-51108 mod_data: Add validation for Lat. and Long.
...
Added a check to see that both the Lat. and Long. values
are entered when filling in database module entries.
2015-09-18 07:33:12 +08:00
Adrian Greeve
f3013ba67e
MDL-51259 mod_data: ratings of items not activated.
...
When selecting a rating method, the restrict rating
to items with dates would be automatically enabled if
not checked. This code brings the data module inline
with forum and glossary.
2015-09-18 07:21:59 +08:00
Ryan Wyllie
ec9e1bec57
MDL-50664 mod_data: tests for 'manageapproved' setting.
...
Adding test coverage for the 'manageapproved' setting that
was added by Johannes Burk.
2015-09-17 06:18:26 +00:00
Johannes Burk
97fe80ad68
MDL-50664 mod_data: add 'manageapproved' setting.
...
New function data_user_can_manage_entry checks whether a user is allowed to manage an entry.
Considering manageentries capability, data_in_readonly_period() result,
ownership (determined by data_isowner()), approval and manageapproved setting.
2015-09-15 07:16:40 +00:00
Ankit Agarwal
731c2712e7
MDL-50173 ratings: Use proper checks to ensure ratings are viewable.
...
Mainly to verify groups visibility this new callback has been created.
Note this was originally 3 commits but for amending purposes they have
been squashed.
2015-09-09 04:07:21 +02:00
David Monllao
9f6a55f7ea
Merge branch 'MDL-51179-master' of git://github.com/damyon/moodle
...
Conflicts:
lib/upgrade.txt
2015-09-01 15:57:21 +08:00
Damyon Wiese
988592c556
MDL-51179 Atto: Extend autosave fix to cover text changes
...
Added new functions to editor api - set/get_text so the
original form text can be determined from an editor.
When calling use_editor() you should first call set_text() with
the text that will be inserted in the form element.
There is also a new scheduled task for cleaning Atto autosave drafts.
2015-09-01 12:23:00 +08:00
Frederic Massart
e36b5c0030
MDL-50127 mod_data: RTL styles for the required image
2015-08-14 16:46:58 +08:00
John Okely
c07c5e7bdd
MDL-50127 mod_data: Fix required icons in add entry screen
2015-08-14 16:46:58 +08:00
Henning Bostelmann
0bec64c6a1
MDL-50720 mod_data: Highlight non-approved entries
2015-08-11 11:30:02 +01:00
Juan Leyva
3c4d2965de
MDL-50171 data: Fixed incorrect text formatting in external functions
2015-06-19 09:43:51 +02:00