mirror of
https://github.com/e107inc/e107.git
synced 2025-08-20 13:21:54 +02:00
Fix for admin-log of Admin-UI DB-inserts and fix for default userclass value in form element.
This commit is contained in:
@@ -1783,6 +1783,12 @@ class e_form
|
||||
$name .= '[]';
|
||||
}
|
||||
|
||||
if(empty($current_value) && !empty($uc_options)) // make the first in the opt list the default value.
|
||||
{
|
||||
$tmp = explode(",", $uc_options);
|
||||
$current_value = e107::getUserClass()->getClassFromKey($tmp[0]);
|
||||
}
|
||||
|
||||
return $this->select_open($name, $select_options)."\n".$this->_uc->vetted_tree($name, array($this, '_uc_select_cb'), $current_value, $uc_options, $opt_options)."\n".$this->select_close();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user