[Advanced Search] This fix adds table name to column so that query doesn't error.

这个提交包含在:
Andreas 2021-11-17 17:21:15 +01:00
父节点 87d3f694b3
当前提交 bef977950c

查看文件

@ -158,6 +158,8 @@ class Search extends CI_Controller {
}
foreach($values['rules'] as $group_value)
{
$group_value['field'] = $this->config->item('table_name') . '.' . $group_value['field'];
if($group_value['operator'] == "equal") {
if($values['condition'] == "AND") {
$this->db->where($group_value['field'], $group_value['value']);
@ -267,6 +269,8 @@ class Search extends CI_Controller {
$this->db->group_end();
} else {
//print_r($values['field']);
$values['field'] = $this->config->item('table_name') . '.' . $values['field'];
if(isset($values['operator'])) {
}