From 1fbcba01de4ae9a9e5a2b3e1fcfc8190487b6a8f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 14 Dec 2010 23:40:46 +0000 Subject: [PATCH] Fix: bad element name --- htdocs/compta/facture.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 0156f2e56a4..5cdd43ce8ed 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -1387,7 +1387,7 @@ if ($_GET['action'] == 'create') else if (in_array($element,array('order','commande','propal','contrat','contract'))) { // For compatibility - if ($element == 'order') { $element = $subelement = 'commande'; } + if ($element == 'order' || $element == 'commande') { $element = $subelement = 'commande'; } if ($element == 'propal') { $element = 'comm/propal'; $subelement = 'propal'; } if ($element == 'contract') { $element = $subelement = 'contrat'; }