Fix advanced search
* fix is/is not empty * fix is null/is not null
这个提交包含在:
		
							父节点
							
								
									da739e080f
								
							
						
					
					
						当前提交
						1c7e73ca9e
					
				
					共有  1 个文件被更改,包括 8 次插入 和 8 次删除
				
			
		|  | @ -196,33 +196,33 @@ class Search extends CI_Controller { | |||
| 
 | ||||
| 			if ($object['operator'] == "is_empty") { | ||||
| 				if ($condition == "AND") { | ||||
| 					$this->db->where($object['field'], "''"); | ||||
| 					$this->db->where($object['field'], ''); | ||||
| 				} else { | ||||
| 					$this->db->or_where($object['field'], "''"); | ||||
| 					$this->db->or_where($object['field'], ''); | ||||
| 				} | ||||
| 			} | ||||
| 
 | ||||
| 			if ($object['operator'] == "is_not_empty") { | ||||
| 				if ($condition == "AND") { | ||||
| 					$this->db->where($object['field'] . ' !=', "''"); | ||||
| 					$this->db->where($object['field'] . ' !=', ''); | ||||
| 				} else { | ||||
| 					$this->db->or_where($object['field'] . ' !=', "''"); | ||||
| 					$this->db->or_where($object['field'] . ' !=', ''); | ||||
| 				} | ||||
| 			} | ||||
| 
 | ||||
| 			if ($object['operator'] == "is_null") { | ||||
| 				if ($condition == "AND") { | ||||
| 					$this->db->where($object['field'] . ' is ', NULL); | ||||
| 					$this->db->where($object['field'] . ' IS NULL'); | ||||
| 				} else { | ||||
| 					$this->db->or_where($object['field'] . ' is ', NULL); | ||||
| 					$this->db->or_where($object['field'] . ' IS NULL'); | ||||
| 				} | ||||
| 			} | ||||
| 
 | ||||
| 			if ($object['operator'] == "is_not_null") { | ||||
| 				if ($condition == "AND") { | ||||
| 					$this->db->where($object['field'] . ' is not ', NULL); | ||||
| 					$this->db->where($object['field'] . ' IS NOT NULL'); | ||||
| 				} else { | ||||
| 					$this->db->or_where($object['field'] . ' is not ', NULL); | ||||
| 					$this->db->or_where($object['field'] . ' IS NOT NULL'); | ||||
| 				} | ||||
| 			} | ||||
| 
 | ||||
|  |  | |||
		正在加载…
	
		在新工单中引用