From 8a22d103255a294f672c6322b610222cb469ebe5 Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 16 Jun 2015 11:02:57 -0700 Subject: [PATCH] Issue #1054 - Inline editing was not triggering beforeUpdate and afterUpdate methods. --- e107_handlers/admin_ui.php | 4 +++- e107_plugins/forum/forum_admin.php | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/e107_handlers/admin_ui.php b/e107_handlers/admin_ui.php index f06bc9d6e..3e15e4092 100644 --- a/e107_handlers/admin_ui.php +++ b/e107_handlers/admin_ui.php @@ -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()) { diff --git a/e107_plugins/forum/forum_admin.php b/e107_plugins/forum/forum_admin.php index d3ec4b710..56d83da95 100644 --- a/e107_plugins/forum/forum_admin.php +++ b/e107_plugins/forum/forum_admin.php @@ -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); }