1
0
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:
Cameron
2015-06-16 11:02:57 -07:00
parent 9c27f20290
commit 8a22d10325
2 changed files with 4 additions and 3 deletions

View File

@@ -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())
{

View File

@@ -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);
}