mirror of
https://github.com/e107inc/e107.git
synced 2025-08-16 03:24:20 +02:00
Default Author fix for userpicker() with admin-ui
This commit is contained in:
@@ -4855,9 +4855,9 @@ class e_form
|
||||
if(!isset($parms['__options'])) $parms['__options'] = array();
|
||||
if(!is_array($parms['__options'])) parse_str($parms['__options'], $parms['__options']);
|
||||
|
||||
if((empty($value) && !empty($parms['currentInit']) && !isset($parms['default']) ) || !empty($parms['current']) || (vartrue($parms['default']) == 'USERID')) // include current user by default.
|
||||
if((empty($value) || !empty($parms['currentInit']) && empty($parms['default']) ) || !empty($parms['current']) || (vartrue($parms['default']) == 'USERID')) // include current user by default.
|
||||
{
|
||||
$value = USERID;
|
||||
$value = array('user_id'=>USERID, 'user_name'=>USERNAME);
|
||||
if(vartrue($parms['current']))
|
||||
{
|
||||
$parms['__options']['readonly'] = true;
|
||||
@@ -4865,6 +4865,10 @@ class e_form
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// if(!is_array($value))
|
||||
// {
|
||||
// $value = $value ? e107::getSystemUser($value, true)->getUserData() : array();// e107::user($value);
|
||||
|
Reference in New Issue
Block a user