From 0b31e61313696b43b0b89761ea3987d8ae6b114e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 29 Jul 2009 23:45:33 +0000 Subject: [PATCH] Qual: Uniformize code --- htdocs/categories/categorie.php | 2 +- htdocs/html.form.class.php | 4 ++-- htdocs/soc.php | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/htdocs/categories/categorie.php b/htdocs/categories/categorie.php index 294c11ca7b5..10657039279 100644 --- a/htdocs/categories/categorie.php +++ b/htdocs/categories/categorie.php @@ -146,7 +146,7 @@ if ($_GET["socid"]) print ''; print ''; print ''; diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 057f2d02ab4..05bb19abc2c 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -1524,7 +1524,7 @@ class Form * \param selected Id categorie preselectionnee * \param select_name Nom formulaire HTML */ - function select_all_categories($type,$selected='',$select_name="") + function select_all_categories($type,$selected='',$select_name="",$maxlength=64) { global $langs; $langs->load("categories"); @@ -1551,7 +1551,7 @@ class Form { $add = ''; } - $output.= ''; + $output.= ''; } } } diff --git a/htdocs/soc.php b/htdocs/soc.php index 6590b5cf022..75c98a5389d 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -1260,11 +1260,13 @@ else print ''.$langs->trans("Modify").''; } + /* Not specific to third party. Must go on Project menu to create a project. if ($conf->projet->enabled && $user->rights->projet->creer) { $langs->load("projects"); print ''.$langs->trans("AddProject").''; } + */ if ($user->rights->societe->contact->creer) {
'.$langs->trans("Name").''; - print $soc->nom; + print $html->showrefnav($soc,'socid','',1,'rowid','nom'); print '
'.$langs->trans('Prefix').''.$soc->prefix_comm.'