Skip to content
Snippets Groups Projects
Commit bca7312d authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: uniformize code

Fix: object $conf not loaded
parent eabf8c3a
No related branches found
No related tags found
No related merge requests found
......@@ -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))
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment