From f7ca6e4d4b551d62fb51c1a757a96f7d69b4eeaf Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 12 Feb 2011 22:21:30 +0000 Subject: [PATCH] Qual: Better management of option SOCIETE_USEPREFIX --- htdocs/societe/soc.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php index 8dbb542eb7d..ac977116fca 100644 --- a/htdocs/societe/soc.php +++ b/htdocs/societe/soc.php @@ -665,22 +665,20 @@ else // Name, firstname if ($soc->particulier) { - print ''.$langs->trans('LastName').''; + print ''.$langs->trans('LastName').'global->SOCIETE_USEPREFIX)?' colspan="3"':'').'>'; if (! empty($conf->global->SOCIETE_USEPREFIX)) // Old not used prefix field { print ''.$langs->trans('Prefix').''; } - else print ' '; print ''; } else { - print ''.$langs->trans('ThirdPartyName').''; + print ''.$langs->trans('ThirdPartyName').'global->SOCIETE_USEPREFIX)?' colspan="3"':'').'>'; if (! empty($conf->global->SOCIETE_USEPREFIX)) // Old not used prefix field { print ''.$langs->trans('Prefix').''; } - else print ' '; print ''; } // If javascript on, we show option individual