From b5b90d1639ec089dfea94d253b5a8df58ede67fe Mon Sep 17 00:00:00 2001 From: fmarcet Date: Fri, 25 Sep 2015 08:50:00 +0200 Subject: [PATCH] FIX #3599 Not saving legal form --- htdocs/admin/company.php | 4 ++-- htdocs/societe/soc.php | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/htdocs/admin/company.php b/htdocs/admin/company.php index 17c1414106e..b546cf235fb 100644 --- a/htdocs/admin/company.php +++ b/htdocs/admin/company.php @@ -414,9 +414,9 @@ if ($action == 'edit' || $action == 'updateedit') // Forme juridique $var=!$var; - print ''; + print ''; if ($mysoc->country_code) { - print $formcompany->select_juridicalstatus($conf->global->MAIN_INFO_SOCIETE_FORME_JURIDIQUE, $mysoc->country_code, '', 'legal_form'); + print $formcompany->select_juridicalstatus($conf->global->MAIN_INFO_SOCIETE_FORME_JURIDIQUE, $mysoc->country_code, '', 'forme_juridique_code'); } else { print $countrynotdefined; } diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php index 97adcf008a1..771c8aa87e8 100644 --- a/htdocs/societe/soc.php +++ b/htdocs/societe/soc.php @@ -1203,11 +1203,11 @@ else print ''; // Legal Form - print ''.fieldLabel('JuridicalStatus','legal_form').''; + print ''.fieldLabel('JuridicalStatus','forme_juridique_code').''; print ''; if ($object->country_id) { - print $formcompany->select_juridicalstatus($object->forme_juridique_code, $object->country_code, '', 'legal_form'); + print $formcompany->select_juridicalstatus($object->forme_juridique_code, $object->country_code, '', 'forme_juridique_code'); } else { @@ -1786,8 +1786,8 @@ else print ''; // Juridical type - print ''.fieldLabel('JuridicalStatus','legal_form').''; - print $formcompany->select_juridicalstatus($object->forme_juridique_code, $object->country_code, '', 'legal_form'); + print ''.fieldLabel('JuridicalStatus','forme_juridique_code').''; + print $formcompany->select_juridicalstatus($object->forme_juridique_code, $object->country_code, '', 'forme_juridique_code'); print ''; // Capital