Skip to content

Commit ccadfac

Browse files
committed
Issue #66: Fix CI issues
1 parent 5c4b309 commit ccadfac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

classes/search/cmsfield.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ public function get_document_recordset($modifiedfrom = 0, \context $context = nu
6868
WHERE mcd.timemodified >= ? AND mcc.component = 'mod_cms' AND mcc.area = 'cmsfield'
6969
AND mcf.type IN ('textarea', 'text')
7070
UNION
71-
SELECT mc.id, mc.course AS courseid, mc.typeid, null AS fieldname, null dataid,
72-
null AS value, null AS valueformat,
71+
SELECT mc.id, mc.course AS courseid, mc.typeid, null AS fieldname, null AS type,
72+
null AS dataid, null AS value, null AS valueformat,
7373
mc.timecreated timecreated, mc.timemodified timemodified
7474
FROM {cms} mc
7575
LEFT JOIN {customfield_data} mcd ON mc.id = mcd.instanceid
@@ -123,7 +123,7 @@ public function get_document($record, $options = []) {
123123

124124
// Check if it's default value or not.
125125
if (empty($record->dataid)) {
126-
$title = $this->defaultvalues[$record->typeid]->fieldname ?? '';
126+
$title = $this->defaultvalues[$record->typeid]->fieldname ?? '';
127127
$value = $this->defaultvalues[$record->typeid]->value ?? '';
128128
if (isset($this->defaultvalues[$record->typeid]->valueformat)) {
129129
$valueformat = $this->defaultvalues[$record->typeid]->valueformat;

0 commit comments

Comments
 (0)