Fix: uniformize code

Fix: object $conf not loaded
This commit is contained in:
Regis Houssin 2010-10-19 07:41:03 +00:00
parent eabf8c3a01
commit bca7312d3d

View File

@ -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))
{