FIX : stickler

This commit is contained in:
Gauthier PC portable 024 2021-10-15 10:36:47 +02:00
parent 412746ec8f
commit 5ef681ef91

View File

@ -9144,6 +9144,8 @@ abstract class CommonObject
* *
* @param int $parentId Parent Id * @param int $parentId Parent Id
* @param string $parentField Name of Foreign key parent column * @param string $parentField Name of Foreign key parent column
* @param array $filter an array filter
* @param string $filtermode AND or OR
* @return int <0 if KO, >0 if OK * @return int <0 if KO, >0 if OK
* @throws Exception * @throws Exception
*/ */
@ -9160,7 +9162,7 @@ abstract class CommonObject
$sql = "SELECT rowid FROM ".MAIN_DB_PREFIX.$this->table_element; $sql = "SELECT rowid FROM ".MAIN_DB_PREFIX.$this->table_element;
$sql .= " WHERE ".$parentField." = ".(int) $parentId; $sql .= " WHERE ".$parentField." = ".(int) $parentId;
// Manage filter // Manage filters
$sqlwhere = array(); $sqlwhere = array();
if (count($filter) > 0) { if (count($filter) > 0) {
foreach ($filter as $key => $value) { foreach ($filter as $key => $value) {