mirror of
https://github.com/moodle/moodle.git
synced 2025-04-25 10:26:17 +02:00
MDL-33465 course: COALESCE is not cross-db compatible while using fields of different datatypes
This commit is contained in:
parent
336d8c49f4
commit
283ba570c0
@ -38,7 +38,7 @@ global $DB; // TODO: this is a hack, we should really do something with the SQL
|
||||
$logs = array(
|
||||
array('module'=>'course', 'action'=>'user report', 'mtable'=>'user', 'field'=>$DB->sql_concat('firstname', "' '" , 'lastname')),
|
||||
array('module'=>'course', 'action'=>'view', 'mtable'=>'course', 'field'=>'fullname'),
|
||||
array('module'=>'course', 'action'=>'view section', 'mtable'=>'course_sections', 'field'=>'COALESCE(name, section)'),
|
||||
array('module'=>'course', 'action'=>'view section', 'mtable'=>'course_sections', 'field'=>'name'),
|
||||
array('module'=>'course', 'action'=>'update', 'mtable'=>'course', 'field'=>'fullname'),
|
||||
array('module'=>'course', 'action'=>'enrol', 'mtable'=>'course', 'field'=>'fullname'), // there should be some way to store user id of the enrolled user!
|
||||
array('module'=>'course', 'action'=>'unenrol', 'mtable'=>'course', 'field'=>'fullname'), // there should be some way to store user id of the enrolled user!
|
||||
|
Loading…
x
Reference in New Issue
Block a user