-
Bug
-
Resolution: Fixed
-
Minor
-
2.8.3
-
None
-
2014111002
-
MOODLE_28_STABLE
-
MOODLE_28_STABLE
If you try to filter entries by the entrystate, sql contains a join with dataform_contents with a condition set to the fieldid of entrystate, but in dataform_contents there is no entry for the entrystate, because state of entry is stored in mdl_dataform_entries. Which ends up in displaying not entries in views using this filter.
My quickfix was to role back to commit 4f08b58... which is working for me. So the bug was introduced with b1aa716... (removing condition on adding the fieldid to the sql: if (!$internalfield and $fromcontent) {$searchfrom[$fieldid] = $fieldid;})