'.$langs->trans("Root").'';
+$morehtmlref .= ' > ';
+$ways = $object->print_all_ways("auto", '', 1, 0, 1);
foreach ($ways as $way) {
$morehtmlref .= $way."
\n";
}
diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index 88f43815ed7..3765e6b17b3 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -10134,7 +10134,7 @@ class Form
* Render list of categories linked to object with id $id and type $type
*
* @param int $id Id of object
- * @param string $type Type of category ('member', 'customer', 'supplier', 'product', 'contact'). Old mode (0, 1, 2, ...) is deprecated.
+ * @param string $type Type of category ('member', 'customer', 'supplier', 'product', 'contact'). Old mode using number (0, 1, 2, ...) is deprecated.
* @param int<0,1> $rendermode 0=Default, use multiselect (deprecated). 1=Emulate multiselect (recommended)
* @param int<0,1> $nolink 1=Do not add html links
* @return string String with categories
@@ -10149,7 +10149,7 @@ class Form
if ($rendermode == 1) {
$toprint = array();
foreach ($categories as $c) {
- $ways = $c->print_all_ways(' >> ', ($nolink ? 'none' : ''), 0, 1); // $ways[0] = "ccc2 >> ccc2a >> ccc2a1" with html formatted text
+ $ways = $c->print_all_ways('auto', ($nolink ? 'none' : ''), 0, 1); // $ways[0] = "ccc2 >> ccc2a >> ccc2a1" with html formatted text
foreach ($ways as $way) {
$color = $c->color;
$sfortag = '
';
diff --git a/htdocs/core/class/html.formsetup.class.php b/htdocs/core/class/html.formsetup.class.php
index ec2653bdcfc..15f75e3f126 100644
--- a/htdocs/core/class/html.formsetup.class.php
+++ b/htdocs/core/class/html.formsetup.class.php
@@ -1326,7 +1326,7 @@ class FormSetupItem
if ($result < 0) {
$this->setErrors($c->errors);
}
- $ways = $c->print_all_ways(' >> ', 'none', 0, 1); // $ways[0] = "ccc2 >> ccc2a >> ccc2a1" with html formatted text
+ $ways = $c->print_all_ways('auto', 'none', 0, 1); // $ways[0] = "ccc2 >> ccc2a >> ccc2a1" with html formatted text
$toprint = array();
foreach ($ways as $way) {
$toprint[] = 'color ? ' style="background: #' . $c->color . ';"' : ' style="background: #bbb"') . '>' . $way . '';
diff --git a/htdocs/fourn/product/list.php b/htdocs/fourn/product/list.php
index 696489ac1ed..602837329d1 100644
--- a/htdocs/fourn/product/list.php
+++ b/htdocs/fourn/product/list.php
@@ -280,7 +280,7 @@ print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sort
if (!empty($catid)) {
print "
";
$c = new Categorie($db);
- $ways = $c->print_all_ways(' > ', 'fourn/product/list.php');
+ $ways = $c->print_all_ways('auto', 'fourn/product/list.php');
print " > ".$ways[0]."
\n";
print "
";
}
diff --git a/htdocs/product/list.php b/htdocs/product/list.php
index 10216a428cc..268d6e17031 100644
--- a/htdocs/product/list.php
+++ b/htdocs/product/list.php
@@ -984,7 +984,7 @@ include DOL_DOCUMENT_ROOT.'/core/tpl/massactions_pre.tpl.php';
if (!empty($catid)) {
print "
";
$c = new Categorie($db);
- $ways = $c->print_all_ways(' > ', 'product/list.php');
+ $ways = $c->print_all_ways('auto', 'product/list.php');
print " > ".$ways[0]."
\n";
print "
";
}
diff --git a/htdocs/product/reassort.php b/htdocs/product/reassort.php
index d4fcd04805a..08de6af6bc5 100644
--- a/htdocs/product/reassort.php
+++ b/htdocs/product/reassort.php
@@ -414,7 +414,7 @@ if ($resql) {
print "
";
$c = new Categorie($db);
$c->fetch($search_categ);
- $ways = $c->print_all_ways(' > ', 'product/reassort.php');
+ $ways = $c->print_all_ways('auto', 'product/reassort.php');
print " > ".$ways[0]."
\n";
print "
";
}
diff --git a/htdocs/product/reassortlot.php b/htdocs/product/reassortlot.php
index 294f5ac78e0..df8fea7de82 100644
--- a/htdocs/product/reassortlot.php
+++ b/htdocs/product/reassortlot.php
@@ -564,7 +564,7 @@ if ($search_categ > 0) {
print "
";
$c = new Categorie($db);
$c->fetch($search_categ);
- $ways = $c->print_all_ways(' > ', 'product/reassortlot.php');
+ $ways = $c->print_all_ways('auto', 'product/reassortlot.php');
print " > ".$ways[0]."
\n";
print "
";
}
diff --git a/htdocs/societe/list.php b/htdocs/societe/list.php
index aac87a42cd5..aee9f4371f6 100644
--- a/htdocs/societe/list.php
+++ b/htdocs/societe/list.php
@@ -1301,7 +1301,7 @@ include DOL_DOCUMENT_ROOT.'/core/tpl/massactions_pre.tpl.php';
if (!empty($search_categ_cus) || !empty($search_categ_sup)) {
print "
";
$c = new Categorie($db);
- $ways = $c->print_all_ways(' > ', 'societe/list.php');
+ $ways = $c->print_all_ways('auto', 'societe/list.php');
print " > ".$ways[0]."
\n";
print "
";
}
diff --git a/htdocs/user/list.php b/htdocs/user/list.php
index d207e6c27ef..01d36cbcd41 100644
--- a/htdocs/user/list.php
+++ b/htdocs/user/list.php
@@ -708,7 +708,7 @@ include DOL_DOCUMENT_ROOT.'/core/tpl/massactions_pre.tpl.php';
if (!empty($catid)) {
print "
";
$c = new Categorie($db);
- $ways = $c->print_all_ways(' > ', 'user/list.php');
+ $ways = $c->print_all_ways('auto', 'user/list.php');
print " > ".$ways[0]."
\n";
print "
";
}