Skip to content

Commit

Permalink
Merge pull request #14 from siddik-web/main
Browse files Browse the repository at this point in the history
Fix: 500 Unknown column 'a.name' in 'where clause' Unknown column 'a.name' in 'where clause'
  • Loading branch information
ahamed authored Apr 3, 2023
2 parents 7318506 + 9c8ff85 commit f37f227
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Assets/component/administrator/src/Model/NotesModel.jext
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,9 @@ class NotesModel extends ListModel
{
$search = '%' . trim($search) . '%';
$query->where(
'(' . $db->quoteName('a.name') . ' LIKE :name OR ' . $db->quoteName('a.alias') . ' LIKE :alias)'
'(' . $db->quoteName('a.title') . ' LIKE :title OR ' . $db->quoteName('a.alias') . ' LIKE :alias)'
);
$query->bind(':name', $search);
$query->bind(':title', $search);
$query->bind(':alias', $search);
}
}
Expand Down

0 comments on commit f37f227

Please sign in to comment.