mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 12:48:26 +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)
|
$model->setPostedData($_POST, null, false, false)
|
||||||
->setParam('validateAvailable', true) // new param to control validate of available data only, reset on validate event
|
->setParam('validateAvailable', true) // new param to control validate of available data only, reset on validate event
|
||||||
->update(true);
|
->update(true);
|
||||||
//$res = $this->_manageSubmit('beforeUpdate', 'afterUpdate', 'onUpdateError', 'edit');
|
|
||||||
|
$res = $this->_manageSubmit('beforeUpdate', 'afterUpdate', 'onUpdateError', 'edit');
|
||||||
|
// print_r($res);
|
||||||
|
|
||||||
if($model->hasError())
|
if($model->hasError())
|
||||||
{
|
{
|
||||||
|
@@ -386,8 +386,7 @@ if(!deftrue('OLD_FORUMADMIN'))
|
|||||||
public function afterUpdate($new_data, $old_data, $id)
|
public function afterUpdate($new_data, $old_data, $id)
|
||||||
{
|
{
|
||||||
// do something
|
// do something
|
||||||
e107::getCache()->clear_sys('forum_perms');
|
e107::getCache()->clear_sys('forum_perms',true);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user