mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 11:50:30 +02:00
Issue #1054 - Inline editing was not triggering beforeUpdate and afterUpdate methods.
This commit is contained in:
@@ -4940,7 +4940,9 @@ class e_admin_ui extends e_admin_controller_ui
|
||||
$model->setPostedData($_POST, null, false, false)
|
||||
->setParam('validateAvailable', true) // new param to control validate of available data only, reset on validate event
|
||||
->update(true);
|
||||
//$res = $this->_manageSubmit('beforeUpdate', 'afterUpdate', 'onUpdateError', 'edit');
|
||||
|
||||
$res = $this->_manageSubmit('beforeUpdate', 'afterUpdate', 'onUpdateError', 'edit');
|
||||
// print_r($res);
|
||||
|
||||
if($model->hasError())
|
||||
{
|
||||
|
@@ -386,8 +386,7 @@ if(!deftrue('OLD_FORUMADMIN'))
|
||||
public function afterUpdate($new_data, $old_data, $id)
|
||||
{
|
||||
// do something
|
||||
e107::getCache()->clear_sys('forum_perms');
|
||||
|
||||
e107::getCache()->clear_sys('forum_perms',true);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user