Fix/FIX #17545 get documents, false data problem
Fix on getting wrong data for products comparing with like operator
This commit is contained in:
parent
852360de4a
commit
6fa85efd0f
@ -529,7 +529,12 @@ class EcmFiles extends CommonObject
|
|||||||
$sqlwhere = array();
|
$sqlwhere = array();
|
||||||
if (count($filter) > 0) {
|
if (count($filter) > 0) {
|
||||||
foreach ($filter as $key => $value) {
|
foreach ($filter as $key => $value) {
|
||||||
$sqlwhere [] = $key.' LIKE \'%'.$this->db->escape($value).'%\'';
|
if($key == 't.src_object_id'){
|
||||||
|
$sqlwhere [] = $key.' = '.$this->db->escape($value);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$sqlwhere [] = $key.' LIKE \'%'.$this->db->escape($value).'%\'';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$sql .= ' WHERE 1 = 1';
|
$sql .= ' WHERE 1 = 1';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user