mirror of
https://github.com/e107inc/e107.git
synced 2025-04-21 21:21:54 +02:00
Fix for getModel() in custom form method 'read' mode.
This commit is contained in:
parent
61ce9395f4
commit
f2b286d1a1
@ -2770,6 +2770,12 @@ class e_admin_controller_ui extends e_admin_controller
|
||||
$this->_setModel();
|
||||
}
|
||||
|
||||
if($this->getQuery('action') == 'list') // allow for use of getModel() at all times.
|
||||
{
|
||||
return $this->getListModel();
|
||||
}
|
||||
|
||||
|
||||
return $this->_model;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user