mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
Fix for getModel() in custom form method 'read' mode.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user