Update productcustomerprice.class.php

fetchAll
This commit is contained in:
UT from dolibit 2022-09-07 20:51:13 +02:00 committed by GitHub
parent a079fb3fec
commit 2b9350cd09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -356,7 +356,7 @@ class Productcustomerprice extends CommonObject
* @param array $filter Filter for select * @param array $filter Filter for select
* @return int <0 if KO, >0 if OK * @return int <0 if KO, >0 if OK
*/ */
public function fetch_all($sortorder = '', $sortfield = '', $limit = 0, $offset = 0, $filter = array()) public function fetchAll($sortorder = '', $sortfield = '', $limit = 0, $offset = 0, $filter = array())
{ {
// phpcs:enable // phpcs:enable
global $langs; global $langs;
@ -421,7 +421,7 @@ class Productcustomerprice extends CommonObject
$sql .= $this->db->plimit($limit + 1, $offset); $sql .= $this->db->plimit($limit + 1, $offset);
} }
dol_syslog(get_class($this)."::fetch_all", LOG_DEBUG); dol_syslog(get_class($this)."::fetchAll", LOG_DEBUG);
$resql = $this->db->query($sql); $resql = $this->db->query($sql);
if ($resql) { if ($resql) {
$this->lines = array(); $this->lines = array();
@ -832,7 +832,7 @@ class Productcustomerprice extends CommonObject
't.fk_product' => $this->fk_product, 't.fk_soc' => $obj->rowid 't.fk_product' => $this->fk_product, 't.fk_soc' => $obj->rowid
); );
$result = $prodsocprice->fetch_all('', '', 0, 0, $filter); $result = $prodsocprice->fetchAll('', '', 0, 0, $filter);
if ($result < 0) { if ($result < 0) {
$error++; $error++;
$this->error = $prodsocprice->error; $this->error = $prodsocprice->error;