From 863d57004ed232fbd397a7d422cd0330d6f5a98c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 4 Aug 2014 10:44:19 +0200 Subject: [PATCH] Fix: Field must be invisible --- htdocs/user/fiche.php | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/htdocs/user/fiche.php b/htdocs/user/fiche.php index d9ff9c7c71d..108619f66ae 100644 --- a/htdocs/user/fiche.php +++ b/htdocs/user/fiche.php @@ -1879,19 +1879,23 @@ else print "\n"; // Accountancy code - print ""; - print ''.$langs->trans("AccountancyCode").''; - print ''; - if ($caneditfield) + if (! empty($conf->global->USER_ENABLE_ACCOUNTANCY_CODE)) // For the moment field is not used so must not appeared. { - print ''; + print ""; + print ''.$langs->trans("AccountancyCode").''; + print ''; + if ($caneditfield) + { + print ''; + } + else + { + print ''; + print $object->accountancy_code; + } + print ''; + print ""; } - else - { - print ''; - print $object->accountancy_code; - } - print ''; // Status print ''.$langs->trans("Status").'';