MDL-55127 mod_data: Search entries fixes
authorDavid Monllao <davidm@moodle.com>
Thu, 25 Aug 2016 08:50:15 +0000 (16:50 +0800)
committerDavid Monllao <davidm@moodle.com>
Thu, 25 Aug 2016 08:50:15 +0000 (16:50 +0800)
commitfa90f529867abf9036b9d9f3d5bb4e7f9e8a5d06
tree3cebb1dc9dfd4c2b9a7ca16b90ab04e9c42c7889
parentc52d34b2553b03e5f1e686cdb08e28b752ae9eb3
MDL-55127 mod_data: Search entries fixes

- If the database contains has than 4 valid fields all fields from the 4th one
  to the last one will be merged into the 4th one so we index all entry contents
- get_content_value now receives the whole data_content record as fields may need
  other values than just the content to prepare the value
- phpunit database generator changes to separate checkboxes from radio buttons options
  and to separate multimenu options from menu options
mod/data/classes/search/entry.php
mod/data/field/checkbox/field.class.php
mod/data/field/multimenu/field.class.php
mod/data/field/textarea/field.class.php
mod/data/lib.php
mod/data/tests/generator/lib.php
mod/data/tests/generator_test.php
mod/data/tests/search_test.php