Removed the method liste_array() of project class. It was not used by
core code.
This commit is contained in:
parent
b5a7d21f97
commit
ddc01b4c27
@ -14,7 +14,7 @@ WARNING:
|
|||||||
|
|
||||||
Following changes may create regressions for some external modules, but were necessary to make Dolibarr better:
|
Following changes may create regressions for some external modules, but were necessary to make Dolibarr better:
|
||||||
* Properties ->libelle_incoterms were renamed into ->label_incoterms
|
* 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 *****
|
***** ChangeLog for 10.0.0 compared to 9.0.0 *****
|
||||||
|
|||||||
@ -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
|
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
|
||||||
/**
|
/**
|
||||||
* Return list of elements for type, linked to a project
|
* Return list of elements for type, linked to a project
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user