From bca7312d3dfa289aff344175e038f64f1e9b508e Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 19 Oct 2010 07:41:03 +0000 Subject: [PATCH] Fix: uniformize code Fix: object $conf not loaded --- htdocs/admin/fournisseur.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/admin/fournisseur.php b/htdocs/admin/fournisseur.php index 8b561e4065f..541708aac57 100644 --- a/htdocs/admin/fournisseur.php +++ b/htdocs/admin/fournisseur.php @@ -126,6 +126,7 @@ if ($_GET["action"] == 'specimenfacture') if ($_GET["action"] == 'set') { + $type='supplier_order'; $sql = "INSERT INTO ".MAIN_DB_PREFIX."document_model (nom, type, entity) VALUES ('".$_GET["value"]."','".$_GET["type"]."',".$conf->entity.")"; if ($db->query($sql)) {