Fix GETPOST use should be avoid in classes

This commit is contained in:
Laurent Destailleur
2024-02-02 23:46:12 +01:00
parent 97006d6945
commit 1d6cbe1fda
39 changed files with 135 additions and 83 deletions

View File

@@ -2392,7 +2392,7 @@ class Commande extends CommonOrder
* @param int $id Id of object (for a check)
* @return int >0 if OK, 0 if nothing to do, <0 if KO
*/
public function deleteline($user = null, $lineid = 0, $id = 0)
public function deleteLine($user = null, $lineid = 0, $id = 0)
{
if ($this->statut == self::STATUS_DRAFT) {
$this->db->begin();