diff --git a/htdocs/contact/exportimport.php b/htdocs/contact/exportimport.php index 6ed7e8889f4..467201c053c 100644 --- a/htdocs/contact/exportimport.php +++ b/htdocs/contact/exportimport.php @@ -1,5 +1,6 @@ + * Copyright (C) 2006 Regis Houssin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -36,7 +37,7 @@ $langs->load("companies"); // Protection quand utilisateur externe $contactid = isset($_GET["id"])?$_GET["id"]:''; -$scoid=0; +$socid=0; if ($user->societe_id > 0) { $socid = $user->societe_id; diff --git a/mysql/migration/2.0.0-2.1.0.sql b/mysql/migration/2.0.0-2.1.0.sql index b6c2fcee2a8..91c16be4258 100644 --- a/mysql/migration/2.0.0-2.1.0.sql +++ b/mysql/migration/2.0.0-2.1.0.sql @@ -80,3 +80,6 @@ create table llx_product_det ALTER TABLE `llx_propal` ADD `date_livraison` DATE; ALTER TABLE `llx_commande` ADD `date_livraison` DATE; + +ALTER TABLE llx_facture_fourn_det ADD INDEX idx_facture_fourn_det_fk_facture (fk_facture_fourn); +ALTER TABLE llx_facture_fourn_det ADD CONSTRAINT fk_facture_fourn_det_fk_facture FOREIGN KEY (fk_facture_fourn) REFERENCES llx_facture_fourn (rowid);