Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

表单有模糊搜索字段时没有判断是否有值,导致生成的sql语句有无效的查询条件`name` like '%%'

Open
#122 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
55/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
php, sql
Domain
backend, databases

Research direction

Read plugin/admin/app/controller/Crud.php and locate the doSelect function that handles fuzzy-search fields. Reproduce the example query with an empty name value, then verify that the generated SQL no longer includes an invalid name like '%%' condition when the field has no value.

Written by the indexing model from the issue text.

Description

这是生成的示例sql:select count(*) as aggregate from order where name like '%%'
plugin/admin/app/controller/Crud.php 的 doSelect函数中没有对模糊查询的字段进行非空判断,建议加上非空判断

Dominant language
JavaScript
Stars
378
Forks
48
Avg merge
20h 9m
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from webman-php/admin

All issues in webman-php/admin

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.