Permalink
Browse files

MDL-29496 Search, Course - Code applied from patch to allow courses w…

…ith a blank summary to be found in searchs - Thanks to Andrew Nicols for the patch
  • Loading branch information...
1 parent 75371a7 commit 2be90263ec5638562da5b28d192e9dd48f27f2e2 @jsnfwlr jsnfwlr committed Oct 5, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/datalib.php
View
@@ -717,7 +717,7 @@ function get_courses_search($searchterms, $sort='fullname ASC', $page=0, $record
$params = array();
$i = 0;
- $concat = $DB->sql_concat('c.summary', "' '", 'c.fullname', "' '", 'c.idnumber', "' '", 'c.shortname');
+ $concat = $DB->sql_concat("COALESCE(c.summary, ". $DB->sql_empty() .")", "' '", 'c.fullname', "' '", 'c.idnumber', "' '", 'c.shortname');
foreach ($searchterms as $searchterm) {
$i++;

0 comments on commit 2be9026

Please sign in to comment.