SEBSERV-449 fixed name query
This commit is contained in:
parent
90d403c2b3
commit
922149e740
1 changed files with 1 additions and 3 deletions
|
@ -436,9 +436,7 @@ public class MoodlePluginCourseAccess extends AbstractCachedCourseAccess impleme
|
||||||
final String fromElement = String.valueOf(page * size);
|
final String fromElement = String.valueOf(page * size);
|
||||||
final LinkedMultiValueMap<String, String> attributes = new LinkedMultiValueMap<>();
|
final LinkedMultiValueMap<String, String> attributes = new LinkedMultiValueMap<>();
|
||||||
|
|
||||||
// TODO clarify with Amr and Luca if this is OK
|
if (this.applyNameCriteria && StringUtils.isNotBlank(nameCondition)) {
|
||||||
// and if it is possible to apply the nameCondition also the the course name (shortname)
|
|
||||||
if (StringUtils.isNotBlank(nameCondition)) {
|
|
||||||
sqlCondition = sqlCondition + " AND (name LIKE '" +
|
sqlCondition = sqlCondition + " AND (name LIKE '" +
|
||||||
Utils.toSQLWildcard(nameCondition) +
|
Utils.toSQLWildcard(nameCondition) +
|
||||||
"' OR shortname LIKE '" +
|
"' OR shortname LIKE '" +
|
||||||
|
|
Loading…
Reference in a new issue