diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php
index 7e02c5b6227..cc16320c431 100644
--- a/htdocs/html.form.class.php
+++ b/htdocs/html.form.class.php
@@ -946,14 +946,16 @@ class Form
* \brief Retourne la ou les listes déroulante des catégories en fonction du nombre choisi
* \param selected nombre de catégorie à créer
*/
- function select_all_categories($selected='')
+ function select_all_categories($selected='',$select_name="")
{
global $langs;
$langs->load("categorie");
+ if($select_name=="")
+ $select_name="catMere";
$cat = new Categorie ($this -> db);
$cat->get_categories_arbo();
$cate_arbo = $cat->get_arbo_each_cate();
- print '