diff --git a/ChangeLog b/ChangeLog index 2a417a386dd..95314f65679 100644 --- a/ChangeLog +++ b/ChangeLog @@ -78,6 +78,10 @@ removed. You must now use the 6 parameters way. See file modMyModule.class.php f - Properties "dictionnaries" into module descriptor files has been renamed into "dictionaries". - Method form->select_currency() has been removed. Use instead print form->selectCurrency(). - Method form->select_methodes_commande() has been renamed into english name selectInputMethod(). +- The following hooks are now 'addreplace' hooks: "formCreateThirdpartyOptions" + So check that return value is 0 to keep default standard behaviour after hook or 1 to disable + default standard behaviour. + ***** ChangeLog for 3.5.2 compared to 3.5.1 ***** diff --git a/htdocs/core/class/hookmanager.class.php b/htdocs/core/class/hookmanager.class.php index fc606857371..53a8f052394 100644 --- a/htdocs/core/class/hookmanager.class.php +++ b/htdocs/core/class/hookmanager.class.php @@ -137,6 +137,7 @@ class HookManager 'addMoreActionsButtons', 'addStatisticLine', 'doActions', + 'formCreateThirdpartyOptions', 'formObjectOptions', 'formattachOptions', 'formBuilddocLineOptions', diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 46b0b6a2783..0943bce1e87 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -757,7 +757,7 @@ class Form { global $conf,$user,$langs; - $out=''; + $out=''; $num=0; $outarray=array(); // On recherche les societes @@ -859,6 +859,8 @@ class Form dol_print_error($this->db); } + $this->result=array('nbofthirdparties'=>$num); + if ($outputmode) return $outarray; return $out; } diff --git a/htdocs/langs/en_US/companies.lang b/htdocs/langs/en_US/companies.lang index 3c8ba86ec7c..55eb2dbb91f 100644 --- a/htdocs/langs/en_US/companies.lang +++ b/htdocs/langs/en_US/companies.lang @@ -18,6 +18,7 @@ NewCompany=New company (prospect, customer, supplier) NewThirdParty=New third party (prospect, customer, supplier) NewSocGroup=New company group NewPrivateIndividual=New private individual (prospect, customer, supplier) +CreateDolibarrThirdPartySupplier=Create a third party (supplier) ProspectionArea=Prospection area SocGroup=Group of companies IdThirdParty=Id third party diff --git a/htdocs/opensurvey/results.php b/htdocs/opensurvey/results.php index 7ac3dbb0d6d..48c585c0f2e 100644 --- a/htdocs/opensurvey/results.php +++ b/htdocs/opensurvey/results.php @@ -511,7 +511,7 @@ if (GETPOST('ajoutsujet')) if (!$user->rights->opensurvey->write) accessforbidden(); print '