Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRUDプラグインでフリーワード検索を追加しても検索の対象にならない #1527

Open
Tak-Kon opened this issue Oct 18, 2024 · 0 comments
Labels
bug Something isn't working - 不具合

Comments

@Tak-Kon
Copy link

Tak-Kon commented Oct 18, 2024

Describe the bug / バグの説明

A clear and concise description of what the bug is. / バグの内容のかんたんな説明を記載してください。

CRUDプラグインのサンプルである「MySQLWorld」に、フリーワード検索を追加するカスタムを行なっています。
(enableFreewordSearchの値をtrueに変更する処理をPlugin.phpに記載して実現しています)

結果として、画面に検索ボックスは出てくるようにはなったのですが、
値を入力して検索しても絞り込みが行えません。
検索ボックスのHTML記述を調べてみるとname属性が「__search__」となっており、これによりサーバー側で値が受け取れない状況になっていると思われます。なおURLのクエリパラメータも「__search__=XXXX」になっています。

試しに「__search__」を"query"に書き換えてリクエストを投げてみたら絞り込みができましたので、
検索できない原因はここだと考えています。

こちら不具合修正をお願いできないでしょうか?
(文中の__は正しくは半角の_が2つ続いた形になっています。GitHubで__を半角で書くと消えてしまうようなので全角で表現しております)

To Reproduce / 再現手順

Please describe the reproduction procedure in as much detail as possible. / 再現手順を、可能な限り詳細に記載してください。

Version / 発生バージョン

Please describe version. / ご利用のバージョンを記載してください。
v6.1.6

Error log / エラーログ

If possible, paste error log. Log's path is "storage/logs/laravel.log". / 可能であれば、ログを貼り付けてください。ログのパスは"storage/logs/laravel.log"です。

Screenshots / スクリーンショット

If possible, paste the screenshot. / 可能であれば、スクリーンショットを貼り付けてください。

Additional context / その他

Add any other context about the problem here. / その他に記載すべき内容がありましたら、ご記載ください。

@Tak-Kon Tak-Kon added the bug Something isn't working - 不具合 label Oct 18, 2024
KajitoriAdmin added a commit that referenced this issue Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working - 不具合
Projects
None yet
Development

No branches or pull requests

1 participant