Commit Graph

27 Commits

Author SHA1 Message Date
Juan Leyva c8a804ff68 MDL-57920 mod_data: Refactor search array creation 2017-03-30 01:53:35 +02:00
Juan Leyva aefe9c5faa MDL-57919 mod_data: Refactor and new method get_configs_for_external 2017-03-29 11:38:38 +02:00
Damyon Wiese 398be7c897 MDL-56725 mod_data: coding style
Fixes from lines in the previous commit.
2016-11-10 16:21:01 +08:00
Damyon Wiese e85fda95c6 MDL-56725 mod_data: Style fixes for boost theme 2016-11-10 16:21:01 +08:00
Adrian Greeve 8611d1dfc7 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:24:01 +08:00
David Mudrák a5fae3b0d2 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:46 +01:00
Rossiani Wijaya 01f8e80def MDL-34563 accessibility compliance for data module: Add forform input text and select tag 2012-08-13 15:13:07 +08:00
Sam Hemelryk 3211569a6a Revert "MDL-30843 and MDL-30842 - accessibility compliance: Add <label> for form input text and select tag"
This reverts commit f9f281b8fe.
2012-04-11 17:18:58 +12:00
Rossiani Wijaya f9f281b8fe MDL-30843 and MDL-30842 - accessibility compliance: Add <label> for form input text and select tag 2012-03-30 16:26:58 +08:00
Petr Skoda 431ac39634 MDL-26623 fix file permissions
The permissions are now going to be verified as part of the weekly release process.
2011-03-01 12:26:49 +01:00
Eloy Lafuente 6e6878b5ec MDL-21437 data - fixed the sort by fuctionality to be cross-db for all fields 2010-11-17 21:18:53 +00:00
Eloy Lafuente 1675129e35 MDL-21437 data - number and date fields search under mssql and oracle 2010-11-17 17:54:00 +00:00
Petr Skoda 39790bd805 MDL-24321 switching to stdClass in /mod/ 2010-09-21 08:37:36 +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
skodak cbc08f3bfc MDL-17130 dml: eliminated $CFG->dbfamily 2008-11-05 00:12:30 +00:00
skodak 8429163db9 MDL-16493 file and picture element migrated; waiting for file picker to mature, presets not finished yet 2008-09-14 08:22:44 +00:00
skodak e348793639 MDL-15106 towards data mod dml conversion 2008-06-06 08:39:44 +00:00
skodak a656d95103 MDL-15106 towards data mod dml conversion 2008-06-05 19:26:57 +00:00
robertall ed019b50eb [MDL-14771] Replace direct use of function number_format() by format_float(). Some whitespace cleaned up has been made, too. Merged from MOODLE_19_STABLE. 2008-05-30 16:13:35 +00:00
robertall a84f7fddec [MDL-14771] Backend code to allow a "number" field to be displayed with a specified number of decimal digits. Merged from MOODLE_19_STABLE. 2008-05-29 19:17:46 +00:00
robertall 02ee7f3721 [MDL-14788] Don't store empty number fields as 0 2008-05-27 07:43:14 +00:00
toyomoyo 7900ecb02c MDL-5958, code for advanced search for db module from Elijah (HSU) 2007-02-26 06:56:05 +00:00
stronk7 a4bad45c2c Some more uses of $CFG->dbfamily. MDL-7061 2007-01-13 00:32:19 +00:00
skodak aab98aaff1 data mod whitespace cleanup - there are already many accessibility related changes and fixes that are not backportable anyway and merging from previous versions is not expected 2006-12-13 20:26:11 +00:00
skodak 4df627dfbf Bug #5582 - sort by numerical field doesn't work properly with decimals; merged from MOODLE_16_STABLE 2006-05-25 15:57:20 +00:00
moodler ec536d7a48 Make sure the number is stored as a proper number 2006-04-20 04:07:50 +00:00
moodler 59f3b71781 New number field type 2006-04-20 04:02:30 +00:00