Merge branch 'dev' of https://git.verdnatura.es/salix into dev

This commit is contained in:
gerard 2018-06-20 10:21:42 +02:00
commit eebb19cceb
1 changed files with 2 additions and 2 deletions

View File

@ -28,8 +28,8 @@ module.exports = Self => {
if (where) {
if (where.firstName) {
sqlWhere = `AND (em.firstName REGEXP ? OR em.name REGEXP ?)`;
let search = where.firstName.regexp;
sqlWhere = `AND (em.firstName LIKE ? OR em.name LIKE ?)`;
let search = where.firstName.like;
params.push(search);
params.push(search);
}