diff --git a/htdocs/comm/propal/class/api_proposals.class.php b/htdocs/comm/propal/class/api_proposals.class.php index cc6bfb2aa2f46..86a6767326b47 100644 --- a/htdocs/comm/propal/class/api_proposals.class.php +++ b/htdocs/comm/propal/class/api_proposals.class.php @@ -309,13 +309,13 @@ public function getLines($id, $sqlfilters = '') if (!empty($sqlfilters)) { $errormessage = ''; - $sql = forgeSQLFromUniversalSearchCriteria($sqlfilters, $errormessage); + $filters = forgeSQLFromUniversalSearchCriteria($sqlfilters, $errormessage); if ($errormessage) { throw new RestException(400, 'Error when validating parameter sqlfilters -> '.$errormessage); } } - $this->propal->getLinesArray($sql); + $this->propal->getLinesArray($filters); $result = array(); foreach ($this->propal->lines as $line) { array_push($result, $this->_cleanObjectDatas($line));