Minor bugs

This commit is contained in:
Laurent Destailleur 2017-09-03 16:07:21 +02:00
parent cf175b0777
commit 084ea049d8
4 changed files with 11 additions and 6 deletions

View File

@ -5,6 +5,11 @@ English Dolibarr ChangeLog
***** ChangeLog for 7.0.0 compared to 6.0.* ***** ***** ChangeLog for 7.0.0 compared to 6.0.* *****
WARNING:
Following changes may create regression for some external modules, but were necessary to make Dolibarr better:
* The methode "cloture" on contact were renamed into "closeAll".
***** ChangeLog for 6.0.0 compared to 5.0.* ***** ***** ChangeLog for 6.0.0 compared to 5.0.* *****

View File

@ -287,7 +287,7 @@ class Contrat extends CommonObject
if ($ok) if ($ok)
{ {
$this->db->commit(); $this->db->commit();
return 0; return 1;
} }
else else
{ {

View File

@ -673,7 +673,7 @@ class Societe extends CommonObject
if ($this->id_prof_exists($keymin, $vallabel, ($this->id > 0 ? $this->id : 0))) if ($this->id_prof_exists($keymin, $vallabel, ($this->id > 0 ? $this->id : 0)))
{ {
$langs->load("errors"); $langs->load("errors");
$error++; $this->errors[] = $langs->transcountry('ProfId'.$i, $this->country_code)." ".$langs->trans("ErrorProdIdAlreadyExist", $vallabel).' ('.$langs->trans("ForbiddenBySetupRules").')'; $error++; $this->errors[] = $langs->trans('Email')." ".$langs->trans("ErrorProdIdAlreadyExist", $vallabel).' ('.$langs->trans("ForbiddenBySetupRules").')';
} }
} }