You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= " LEFT JOIN il_dcl_record_field AS filter_record_field_{$this->getId()} ON (filter_record_field_{$this->getId()}.record_id = record.id AND filter_record_field_{$this->getId()}.field_id = "
$join_str .= " LEFT JOIN il_dcl_stloc{$this->getStorageLocation()}_value AS filter_stloc_{$this->getId()} ON (filter_stloc_{$this->getId()}.record_field_id = filter_record_field_{$this->getId()}.id) ";
78
75
79
76
$where_str = " AND ";
80
77
81
78
if ($filter_value == 'none') {
82
79
$where_str .= "("
83
80
. "filter_stloc_{$this->getId()}.value IS NULL "
84
-
. " OR filter_stloc_{$this->getId()}.value = " . $ilDB->quote("", 'text')
85
-
. " OR filter_stloc_{$this->getId()}.value = " . $ilDB->quote("[]", 'text')
81
+
. " OR filter_stloc_{$this->getId()}.value = " . $this->db->quote("", 'text')
82
+
. " OR filter_stloc_{$this->getId()}.value = " . $this->db->quote("[]", 'text')
86
83
. ") ";
87
84
} else {
88
85
if ($n_ref) {
89
86
$where_str
90
-
.= " filter_stloc_{$this->getId()}.value LIKE "
91
-
. $ilDB->quote("%$filter_value%", 'text');
87
+
.= " filter_stloc_{$this->getId()}.value LIKE " . $this->db->quote("%\"$filter_value\"%", 'text');
0 commit comments