From cbeeb463e23c2d4a790555a7fbddfb53aee42c6c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 23 Jul 2013 15:26:35 +0200 Subject: [PATCH] Fix: Missing tr line --- htdocs/core/class/html.formfile.class.php | 8 ++++++-- htdocs/core/lib/company.lib.php | 11 +++++++---- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php index 78bf317d3a9..c45d2c7c999 100644 --- a/htdocs/core/class/html.formfile.class.php +++ b/htdocs/core/class/html.formfile.class.php @@ -554,10 +554,14 @@ class FormFile $out .= $hookmanager->resPrint; } } + $out.= ''; } - $out.= ''; - + if (count($file_list) == 0) + { + $out.=''.$langs->trans("None").''; + } + $this->numoffiles++; } } diff --git a/htdocs/core/lib/company.lib.php b/htdocs/core/lib/company.lib.php index 774e16e6e68..a058b129d49 100644 --- a/htdocs/core/lib/company.lib.php +++ b/htdocs/core/lib/company.lib.php @@ -536,7 +536,9 @@ function show_contacts($conf,$langs,$db,$object,$backtopage='') print "\n".''."\n"; - print ''; + $colspan=6; + print ''; + print ''; print ''; print ''; print ''; @@ -545,6 +547,7 @@ function show_contacts($conf,$langs,$db,$object,$backtopage='') print ""; if (! empty($conf->agenda->enabled) && $user->rights->agenda->myactions->create) { + $colspan++; print ''; } print ""; @@ -622,9 +625,9 @@ function show_contacts($conf,$langs,$db,$object,$backtopage='') } else { - //print ""; - //print ''; - //print "\n"; + print ""; + print ''; + print "\n"; } print "\n
'.$langs->trans("Name").'
'.$langs->trans("Name").''.$langs->trans("Poste").''.$langs->trans("PhonePro").''.$langs->trans("PhoneMobile").'  
'.$langs->trans("NoContactsYetDefined").'
'.$langs->trans("None").'
\n";