简体   繁体   English

搜索过滤器在set_relation列的Grocery Crud中不起作用

[英]Search filter not working in Grocery Crud on set_relation column

I am working in grocery crud and codeigniter. 我在杂货杂货店和Codeigniter工作。 I am using following relation to fetch records from Questions table of DB. 我正在使用以下关系从数据库的问题表中获取记录。

$crud->set_relation('pool_id', 'pools', 'Pool {pool_name} ({pool_type})');

and this is the rendered grid. 这是渲染的网格。

我得到的杂货杂物格

Now when i search the Pools column by using search filters as shown below: 现在,当我使用搜索过滤器搜索“池”列时,如下所示:

在此处输入图片说明

My question is that why it's not searching for all the records having Pool A . 我的问题是,为什么它不搜索所有具有Pool A的记录。 Any help? 有什么帮助吗?

因为杂货店在服务器端工作,所以当您在关系(“ Pools字段”)上搜索数据时,必须按不接受NAME的ID搜索。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM