diff --git a/htdocs/categories/class/categorie.class.php b/htdocs/categories/class/categorie.class.php
index 8e6772dec5d..6ca5b2fad02 100644
--- a/htdocs/categories/class/categorie.class.php
+++ b/htdocs/categories/class/categorie.class.php
@@ -1064,11 +1064,11 @@ class Categorie extends CommonObject
*/
function print_all_ways($sep = " >> ", $url='')
{
- $ways = array ();
+ $ways = array();
foreach ($this->get_all_ways() as $way)
{
- $w = array ();
+ $w = array();
foreach ($way as $cat)
{
if ($url == '')
diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index 28f81fc490a..82364874cfe 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -4407,13 +4407,15 @@ class Form
* @param array $selected Array with key+value preselected
* @param int $key_in_label 1 pour afficher la key dans la valeur "[key] value"
* @param int $value_as_key 1 to use value as key
- * @param string $option Valeur de l'option en fonction du type choisi
+ * @param string $morecss Add more css style
* @param int $translate Translate and encode value
- * @param int $width Force width of select box. May be used only when using jquery couch.
+ * @param int $width Force width of select box. May be used only when using jquery couch. Example: 250, 95%
+ * @param string $moreattrib Add more options on select component. Example: 'disabled="disabled"'
+ * @param string $elemtype Type of element we show ('category', ...)
* @return string HTML multiselect string
* @see selectarray
*/
- static function multiselectarray($htmlname, $array, $selected=array(), $key_in_label=0, $value_as_key=0, $option='', $translate=0, $width=0)
+ static function multiselectarray($htmlname, $array, $selected=array(), $key_in_label=0, $value_as_key=0, $morecss='', $translate=0, $width=0, $moreattrib='',$elemtype='')
{
global $conf, $langs;
@@ -4423,8 +4425,36 @@ class Form
$tmpplugin=empty($conf->global->MAIN_USE_JQUERY_MULTISELECT)?constant('REQUIRE_JQUERY_MULTISELECT'):$conf->global->MAIN_USE_JQUERY_MULTISELECT;
print '
';
@@ -4433,7 +4463,7 @@ class Form
// Try also magic suggest
// Add data-role="none" to disable jmobile decoration
- $out = '