mirror of
https://github.com/e107inc/e107.git
synced 2025-09-02 02:42:40 +02:00
Fixes #1535 - Error on User-profile in admin area.
This commit is contained in:
@@ -2320,7 +2320,16 @@ class users_admin_form_ui extends e_admin_form_ui
|
||||
if($mode == 'read')
|
||||
{
|
||||
$field = $att['field'];
|
||||
$data = $this->getController()->getListModel()->get($field); // ($att['field']);
|
||||
|
||||
if($this->getController()->getAction() == 'list')
|
||||
{
|
||||
$data = $this->getController()->getListModel()->get($field); // ($att['field']);
|
||||
}
|
||||
else
|
||||
{
|
||||
$data = $this->getController()->getModel()->get($field); // ($att['field']);
|
||||
}
|
||||
|
||||
|
||||
|
||||
return e107::getUserExt()->renderValue($data, $att['ueType']);
|
||||
|
Reference in New Issue
Block a user