mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 21:57:51 +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();
|
$this->_setModel();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($this->getQuery('action') == 'list') // allow for use of getModel() at all times.
|
||||||
|
{
|
||||||
|
return $this->getListModel();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return $this->_model;
|
return $this->_model;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user