From 1f2a86078a22767782cc0fa41b3f09a2b21b1776 Mon Sep 17 00:00:00 2001 From: Florian HENRY Date: Thu, 8 Oct 2015 11:03:08 +0200 Subject: [PATCH] FIX : Always use type send in parameters in showCategories method --- htdocs/core/class/html.form.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index a4716ba40cc..87d177e5d7d 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -4696,7 +4696,7 @@ class Form if ($rendermode == 0) { - $cate_arbo = $this->select_all_categories(Categorie::TYPE_PRODUCT, '', 'parent', 64, 0, 1); + $cate_arbo = $this->select_all_categories($type, '', 'parent', 64, 0, 1); foreach($categories as $c) { $arrayselected[] = $c->id; }