1
0
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:
Cameron
2015-04-14 11:59:46 -07:00
parent 67d62ce723
commit 3102a6cb07
3 changed files with 26 additions and 1 deletions

View File

@@ -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();
}