Modifie la fonction error()
This commit is contained in:
parent
f76433bd7a
commit
4fcbb80111
@ -265,24 +265,24 @@ class Product
|
|||||||
dolibarr_syslog("Product::".$func." ERRNO (".$this->errno.")");
|
dolibarr_syslog("Product::".$func." ERRNO (".$this->errno.")");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
\brief Retourne le texte de l'erreur
|
||||||
function error($errno)
|
*/
|
||||||
|
function error()
|
||||||
{
|
{
|
||||||
|
|
||||||
$errs[257] = "ErrorProductAlreadyExists";
|
$errs[257] = "ErrorProductAlreadyExists";
|
||||||
$errs[262] = "ErrorProductBadRefOrLabel";
|
$errs[262] = "ErrorProductBadRefOrLabel";
|
||||||
|
|
||||||
return $errs[$errno];
|
return $errs[$this->errno];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Mise à jour du produit en base
|
\brief Mise à jour du produit en base
|
||||||
* \param id id du produit
|
\param id id du produit
|
||||||
* \param user utilisateur qui effectue l'insertion
|
\param user utilisateur qui effectue l'insertion
|
||||||
* \return int 1 si ok, -1 si ref deja existante, -2 autre erreur
|
\return int 1 si ok, -1 si ref deja existante, -2 autre erreur
|
||||||
*/
|
*/
|
||||||
function update($id, $user)
|
function update($id, $user)
|
||||||
{
|
{
|
||||||
global $langs, $conf;
|
global $langs, $conf;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user