We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9382d23 commit c8114e6Copy full SHA for c8114e6
1 file changed
src/TablesIgniter.php
@@ -141,8 +141,12 @@ private function getOutputData($row){
141
*/
142
private function extraConfig($bui){
143
if(!empty($_POST["search"]["value"])){
144
- foreach ($this->searchLike as $field) {
145
- $bui->orLike($field,$_POST["search"]["value"]);
+ foreach ($this->searchLike as $key => $field) {
+ if($key == 0){
146
+ $bui->like($field,$_POST["search"]["value"]);
147
+ }else{
148
+ $bui->orLike($field,$_POST["search"]["value"]);
149
+ }
150
}
151
152
if(isset($_POST["order"])){
0 commit comments