diff --git a/ChangeLog b/ChangeLog index 472c3ffba81..e75961c24f3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -14,7 +14,7 @@ WARNING: Following changes may create regressions for some external modules, but were necessary to make Dolibarr better: * Properties ->libelle_incoterms were renamed into ->label_incoterms - +* Removed the method liste_array() of project class. It was not used by core code. ***** ChangeLog for 10.0.0 compared to 9.0.0 ***** diff --git a/htdocs/projet/class/project.class.php b/htdocs/projet/class/project.class.php index 6b1d5e0a07f..e185c190043 100644 --- a/htdocs/projet/class/project.class.php +++ b/htdocs/projet/class/project.class.php @@ -509,49 +509,6 @@ class Project extends CommonObject } } - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps - /** - * Return list of projects - * - * @param int $socid To filter on a particular third party - * @return array List of projects - */ - public function liste_array($socid = '') - { - // phpcs:enable - global $conf; - - $projects = array(); - - $sql = "SELECT rowid, title"; - $sql.= " FROM " . MAIN_DB_PREFIX . "projet"; - $sql.= " WHERE entity = " . $conf->entity; - if (! empty($socid)) $sql.= " AND fk_soc = " . $socid; - - $resql = $this->db->query($sql); - if ($resql) - { - $nump = $this->db->num_rows($resql); - - if ($nump) - { - $i = 0; - while ($i < $nump) - { - $obj = $this->db->fetch_object($resql); - - $projects[$obj->rowid] = $obj->title; - $i++; - } - } - return $projects; - } - else - { - print $this->db->lasterror(); - } - } - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps /** * Return list of elements for type, linked to a project