moodle/search/classes
Andrew Nicols 0049244893 MDL-60357 search: Ensure that the document is valid
We were previously testing tha the parent is valid, which it was, and
then fetching the current record, before fetching data from it.

However, the way in which the recordset walk works, the valid function
checks whether the _record_ itself is valid, whilst the current allows
for a callback to be applied.

In this instance, the data-entry was failing because the count of
indexfields was < 2. The recordset data itself was valid, but the view
was not, and as a result, the current() function returned false.

This false was not previously handled.

I've changed the logic so that we handle this case, and have removed a
double-negative in the process.
2017-10-13 09:41:59 +08:00
..
output MDL-55053 search: Display search areas in alphabetical order 2016-06-28 17:19:09 -04:00
base.php MDL-55356 core_search: New manager API index_context 2017-10-11 17:17:10 +01:00
base_activity.php MDL-55356 core_search: New area API get_document_recordset 2017-10-11 17:17:08 +01:00
base_block.php MDL-55356 core_search: New area API get_document_recordset 2017-10-11 17:17:08 +01:00
base_mod.php MDL-55356 core_search: New area API get_document_recordset 2017-10-11 17:17:08 +01:00
document.php MDL-60105 search: Fix fatal error 2017-09-13 13:51:30 +02:00
document_factory.php
engine.php MDL-55356 core_search: New manager API index_context 2017-10-11 17:17:10 +01:00
engine_exception.php
manager.php Merge branch 'MDL-55356-master' of https://github.com/sammarshallou/moodle 2017-10-12 11:28:04 +08:00
skip_future_documents_iterator.php MDL-60357 search: Ensure that the document is valid 2017-10-13 09:41:59 +08:00