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,9 +529,14 @@ 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) {
|
||||||
|
if($key == 't.src_object_id'){
|
||||||
|
$sqlwhere [] = $key.' = '.$this->db->escape($value);
|
||||||
|
}
|
||||||
|
else{
|
||||||
$sqlwhere [] = $key.' LIKE \'%'.$this->db->escape($value).'%\'';
|
$sqlwhere [] = $key.' LIKE \'%'.$this->db->escape($value).'%\'';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
$sql .= ' WHERE 1 = 1';
|
$sql .= ' WHERE 1 = 1';
|
||||||
/* Fetching this table depends on filepath+filename, it must not depends on entity
|
/* Fetching this table depends on filepath+filename, it must not depends on entity
|
||||||
if (! empty($conf->multicompany->enabled)) {
|
if (! empty($conf->multicompany->enabled)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user