1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 01:25:01 +02:00

Fix for Menu-Manager visibility setting not saving. Fixes e107::getForm()->userclass() method not functioning as intended.

This commit is contained in:
Cameron
2015-06-02 14:25:39 -07:00
parent 879174ea03
commit f938cc320f
5 changed files with 46 additions and 12 deletions

View File

@@ -430,6 +430,20 @@ class user_class
}
}
if(is_array($extra_js))
{
$options = $extra_js;
unset($extra_js);
}
$class = "tbox form-control";
if(!empty($options['class']))
{
$class .= " ".$options['class'];
}
// Inverted Classes
if(strpos($optlist, 'no-excludes') === FALSE)
{
@@ -453,7 +467,7 @@ class user_class
}
// Only return the select box if we've ended up with some options
if ($text) $text = "\n<select class='tbox form-control' name='{$fieldname}' id='{$fieldname}' {$extra_js}>\n".$text."</select>\n";
if ($text) $text = "\n<select class='".$class."' name='{$fieldname}' id='{$fieldname}' {$extra_js}>\n".$text."</select>\n";
return $text;
}