mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 20:50:21 +01:00
MDL-76142 cohort: cross DB support for description filter.
Specifically avoids Oracle exception ORA-00932.
This commit is contained in:
parent
720bd60fc6
commit
429508a7b4
@ -236,6 +236,8 @@ class cohort extends base {
|
||||
* @return filter[]
|
||||
*/
|
||||
protected function get_all_filters(): array {
|
||||
global $DB;
|
||||
|
||||
$tablealias = $this->get_table_alias('cohort');
|
||||
|
||||
// Context filter.
|
||||
@ -302,7 +304,7 @@ class cohort extends base {
|
||||
'description',
|
||||
new lang_string('description'),
|
||||
$this->get_entity_name(),
|
||||
"{$tablealias}.description"
|
||||
$DB->sql_cast_to_char("{$tablealias}.description")
|
||||
))
|
||||
->add_joins($this->get_joins());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user