Skip to content

Commit

Permalink
Fixed #373 Trim filre for search requets by quests
Browse files Browse the repository at this point in the history
  • Loading branch information
sea5kg committed Jan 3, 2023
1 parent f240e4b commit 6d1300d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cmd/cmd_handlers_quests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ void CmdHandlerQuests::handle(ModelRequest *pRequest) {
std::vector<std::pair<std::string, std::string> > vWhereValues;

std::string sFilter = pRequest->getInputString("filter", "");
WsjcppCore::trim(sFilter);
if (sFilter != "") {
sFilter = "%" + sFilter + "%";
vWhereQuery.push_back("(q.name LIKE :filter OR q.copyright LIKE :copyright OR q.text LIKE :text)");
Expand Down

0 comments on commit 6d1300d

Please sign in to comment.