From f83ab0de703fd7063d76dd9bdb52fa5e255eed69 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 5 Jun 2013 10:49:12 +0200 Subject: [PATCH 1/2] Fix: ModelDoc Activation bug --- htdocs/admin/commande.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/htdocs/admin/commande.php b/htdocs/admin/commande.php index 898d20648ec..1aa6a1be028 100644 --- a/htdocs/admin/commande.php +++ b/htdocs/admin/commande.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2011 Laurent Destailleur + * Copyright (C) 2004-2013 Laurent Destailleur * Copyright (C) 2004 Sebastien Di Cintio * Copyright (C) 2004 Benoit Mortier * Copyright (C) 2004 Andre Cianfarani @@ -45,6 +45,9 @@ if (! $user->admin) accessforbidden(); $action = GETPOST('action','alpha'); $value = GETPOST('value','alpha'); +$type = 'order'; + + /* * Actions */ @@ -267,7 +270,7 @@ foreach ($dirmodels as $reldir) // Show modules according to features level if ($module->version == 'development' && $conf->global->MAIN_FEATURES_LEVEL < 2) continue; if ($module->version == 'experimental' && $conf->global->MAIN_FEATURES_LEVEL < 1) continue; - + $var=!$var; print ''.$module->nom."\n"; print $module->info(); From 7aa145ae6a5900774f8fcfbc1f1d80be296b734e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 5 Jun 2013 11:09:54 +0200 Subject: [PATCH 2/2] Fix: Previous fix was not complete --- htdocs/admin/commande.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/admin/commande.php b/htdocs/admin/commande.php index 1aa6a1be028..fc5c4ec68b2 100644 --- a/htdocs/admin/commande.php +++ b/htdocs/admin/commande.php @@ -44,7 +44,8 @@ if (! $user->admin) accessforbidden(); $action = GETPOST('action','alpha'); $value = GETPOST('value','alpha'); - +$label = GETPOST('label','alpha'); +$scandir = GETPOST('scandir','alpha'); $type = 'order';