Commit Graph

79 Commits

Author SHA1 Message Date
Andrew Nicols 4e2e54eed0 MDL-55866 mod_data: Remember editor enabled state for templates
Some templates can legitimately contain invalid HTML (e.g. mismatched tags)
because the templates operate in pairs.

In these instances we should not use an editor because the nature of the
editor (content editable) means that the browser automatically corrects all
HTML supplied to it, thus breaking the template entirely.

Therefore we need to disable HTML editors for some templates, and do so in
a way tied to the instance of the activity, rather than to a specific user.

This patch adds a new 'config' field, with matching setters and getters, to
allow such per-instance values to be stored.
2016-09-15 08:38:10 +08:00
Stephen Bourget 12306a9f0f MDL-55254 mod_data: Add view permissions 2016-07-24 21:00:57 -04:00
Eloy Lafuente (stronk7) 1abca11e0a MDL-54638 versions: bump all versions and requires near release
version = 2016052300 release version
requires= 2016051900 current rc1 version
2016-05-19 02:16:15 +02:00
Dan Poltawski b174e9efa6 MDL-53149 mod_data: add timemodified field to db schema 2016-03-15 23:31:32 +01:00
Juan Leyva 0ca559a111 MDL-50032 webservice: Remove plugin functions from mobile service 2016-03-04 14:15:33 +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
Dan Poltawski 0730ddc2ad Merge branch 'MDL-50664-master' of git://github.com/ryanwyllie/moodle 2015-09-22 10:39:33 +01: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
Eloy Lafuente (stronk7) 26ea380d24 MDL-50102 versions: bump all versions and requires near release
version = planned 2015051100 release version
requires= current 2015050500 rc1 version

Note: On purpose, the course format social wrong version (2015102100)
has been kept unmodified. Looking forward a solution right now.
2015-05-05 17:43:19 +02:00
Juan Leyva a090259eaa MDL-49337 webservices: Include the new WS in the mobile app service 2015-03-24 10:46:36 +01:00
David Monllao 25ffb8d561 MDL-5583 mod_data: Unify mod_data version 2015-03-10 10:08:32 +08:00
John Okely 1c3b2058c8 MDL-5583 mod_data: Improve required fields
Fix accidental <tr> in some field modify screens
Update mod_data version
Change required asterisk to image
Improve required error message
Fix required icon positions
Remove required code from date field
Add name in labels for fields
Add required field option for multimenu
Remove old required field title text modifier
Add multimenu to behat
Add more comprehensive behat tests
Reload old input when an input error occurs
Behat grammar fixes
Allow location of 0, 0
Use html_writer
Fix existing mod_data behat tests
2015-03-09 13:56:16 +08:00
Damyon Wiese b89cca197e MDL-5583 mod_data: Add required fields
This is implemented for most fields but not all. The reason is that there are
some fields for which this does not make sense because no entry is a valid entry.

The supported fields are:
    checkbox
    file
    latlong
    menu
    number
    picture
    radio
    text
    textarea
    url

The unsupported fields are:
    date
    multimenu
2015-03-06 09:55:49 +08:00
Eloy Lafuente (stronk7) de881693f7 MDL-48021 bump: Bump all versions to planned release
This bumps all versions to planned 2.8 release
(2014111000) version and all the dependencies to
current 2.8rc1 (2014110400)
2014-11-04 17:52:35 +01:00
Eloy Lafuente (stronk7) 538bf99ece MDL-45486 Bump all versions to planned release
This bumps all versions to planned 2.7 release
(2014051200) version and all the dependencies to
current 2.7rc2 (2014050800)
2014-05-09 02:12:28 +02:00
Sam Hemelryk 002a2a44a7 MDL-44154 mod_data: unified @package use 2014-02-18 11:22:41 +13:00
Tomasz Muras 672ce966c6 MDL-43040 Replace $module with $plugin in all mod/*/version.php
Conflicts:
	mod/quiz/version.php
2014-01-29 00:36:12 +01:00
Eloy Lafuente (stronk7) f39c82ebed MDL-42701 Bump all versions near 2.6 release 2013-11-05 02:36:00 +01:00
Eloy Lafuente (stronk7) cedb0aab5a MDL-39434 Bump all versions near 2.5 release 2013-05-01 18:03:29 +02:00
Mark Nelson cba235594a MDL-29334 mod_data: if site-wide presets created in <= 1.9 exist convert them to 2.x 2012-12-12 13:18:02 +08:00
Eloy Lafuente (stronk7) 663dbbc2e6 MDL-36933 Bump everything to 2012112900
(versions, requires and dependencies)
2012-11-30 03:30:09 +01:00
Henning Bostelmann 4f304eeb3d MDL-22773 Database module export: include internal fields
Fields included:
 * User details (fullname, username, email)
 * Time added/modified
 * Approval status
2012-08-14 11:14:07 +01:00
Eloy Lafuente (stronk7) c5e783e512 MDL-33794 version.php: Bump all versions, requires and dependencies to 2012061700 2012-06-18 02:37:00 +02:00
David Mudrak ac381d0381 MDL-32258 database module does not have any data_cron() function to execute 2012-03-29 15:59:45 +02:00
Tim Hunt 88eca3cd26 MDL-19125 module restrictions: addinstance capabilities for all mods 2012-03-15 17:13:43 +00:00
Petr Skoda 633d5a07af MDL-30007 standardise module version files 2011-11-29 21:38:14 +01:00
Eloy Lafuente (stronk7) 350f973d38 MDL-29993 filters - new filter/data filter replacement for legacy mod/data/filter. 2011-10-30 02:33:11 +02:00
Sam Hemelryk 2b04c41c58 MDL-27471 Adding mandatory component & ratingarea to the ratings API + other fixes
* Added the component and ratingarea fields and implemented it throughout
  the rating API as mandatory fields
* Cleanup rating indexes
* Upgrade forum/data/glossary ratings
* Moved the logic in the render_rating method to methods of the rating object.
* Added new callback for checking ratingareas
* Cleaned comments here and there
* Mark the xxx_get_participants methods as deprecated
* Refactor rate_ajax and ratingsuser_can_view_aggregate methods
* Cleaned up rating/index.php to use html_table object and moved inline styles to CSS.
* Added missing properties of the rating object that were being set throughout the rating
  API.
2011-05-23 12:35:39 +02:00
jerome mouneyrac e5f9031bd7 database MDL-24470 rerun database upgrade of the notification column (NOT NULL and default=0) for updated site from a 1.9 with database module version posterior to 2007101513 2010-10-01 09:39:01 +00:00
Petr Skoda c6d75bffa5 MDL-23628 improved log action support - now similar to handling of capabilities 2010-08-03 10:07:18 +00:00
Andrew Davis c506e35496 rating MDL-21657 updated rating upgrade process that drops old rating tables 2010-04-28 03:12:49 +00:00
Martin Dougiamas 6595a5681e ratings MDL-21657 Improving capabilities for ratings.
Rather than performing complicated upgrade procedures from the old (broken) logic in three activity modules, we are adding new capabilities to those three modules to make them all consistent, and using them in a callback from the Ratings API.  This is the same as the Comments API.

The downside is that two sets of capabilities need to be enabled for ratings to work.  Hopefully this can be mitigated somewhat when build some sort of shortcuts on the module settings forms to set capabilities.  In the meantime, the effect is reduced somewhat by having all the rating capabilities enabled by default for student and teacher roles.  This means control is in the hands of whatever the modules have set, giving very close backward compatibility.

This is not the perfect solution, but neither were the other two.
2010-04-23 05:42:22 +00:00
Andrew Davis c7b9082a6a rating MDL-22063 made the scale id column signed to allow for the +ve -ve scale id hack 2010-04-13 05:50:25 +00:00
Andrew Davis 9288633dd7 rating MDL-21657 shifted the rating migration code out of the main upgrade script and into the modules 2010-03-19 08:26:38 +00:00
Petr Skoda 59d8d79d7a MDL-20346 adding missing version bump to match upgrade.php 2009-11-18 12:52:51 +00:00
Dongsheng Cai e998effa3d "MDL-20346, comments api for data module" 2009-11-18 06:00:48 +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 63b0256797 MDL-18910 normalised module intro and introformat 2009-04-20 18:51:37 +00:00
skodak 3c67721aa1 MDL-17405 moving Data mod upgrade notification to proper place (upgrade.php) - better notification will be implemented in MDL-17427 2008-11-27 22:14:34 +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 870707a47e MDL-16024 adding spam risk to database approve capability; merged from MOODLE_19_STABLE 2008-08-17 22:48:51 +00:00
mjollnir_ 8185aeb609 MDL-15758 - added export to portfolio for single database entry
still to do - files stuff for entries (rest of module not converted)
2008-08-14 10:37:40 +00:00
mjollnir_ 7cbe6eed1f MDL-15768 - bump mod/data version and requires properly - requires portfolio code 2008-08-11 14:44:56 +00:00
mjollnir_ 07028cd91f MDL-15768 - add new capabilities to mod/data for portfolio export 2008-08-11 13:45:41 +00:00
dongsheng f430641247 "MDL-14548, modify the notification field in data module to NOT NULL and default value 0, see tracker" 2008-04-29 06:42:18 +00:00
skodak d00adf8605 MDL-14484 rerun asearchtemplate upgrade - there were reported problems on some sites; merged from MOODLE_19_STABLE 2008-04-25 15:20:14 +00:00
dongsheng 046dd7dcf6 MDL-11511, revert the changes, see tracker 2008-04-17 08:11:23 +00:00
dongsheng f752e2fd72 MDL-11511, two new caps are introduced, see tracker, merged from MOODLE_19_STABLE 2008-04-17 05:42:13 +00:00
moodler 99058191c6 Merged version bumps for release 1.9 2008-03-03 11:49:34 +00:00
skodak 25322ba36f MDL-10990 4) added missing indexes into data module; merged from MOODLE_19_STABLE 2008-02-26 22:04:23 +00:00