1
0
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:
Cameron
2016-04-13 09:12:37 -07:00
parent 4a40104073
commit ae85b7b4d1
3 changed files with 12 additions and 3 deletions

View File

@@ -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']);