From 996c9ca2ba6bbf80b0d9e5cd37fd9e99e101b388 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 3 Oct 2015 12:21:27 +0200 Subject: [PATCH] FIX Can't change state on a contact --- htdocs/contact/card.php | 1 + htdocs/societe/soc.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/contact/card.php b/htdocs/contact/card.php index 7570bf7d886..d151298dbc5 100644 --- a/htdocs/contact/card.php +++ b/htdocs/contact/card.php @@ -298,6 +298,7 @@ if (empty($reshook)) $object->zip = GETPOST("zipcode"); $object->town = GETPOST("town"); $object->state_id = GETPOST("state_id",'int'); + $object->fk_departement = GETPOST("state_id",'int'); // For backward compatibility $object->country_id = GETPOST("country_id",'int'); $object->email = GETPOST("email",'alpha'); diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php index aca4fcc9e4e..be879efecf5 100644 --- a/htdocs/societe/soc.php +++ b/htdocs/societe/soc.php @@ -49,7 +49,7 @@ $langs->load("commercial"); $langs->load("bills"); $langs->load("banks"); $langs->load("users"); -if (! empty($conf->categories->enabled)) $langs->load("categories"); +if (! empty($conf->categorie->enabled)) $langs->load("categories"); if (! empty($conf->incoterm->enabled)) $langs->load("incoterm"); if (! empty($conf->notification->enabled)) $langs->load("mails");