From 8aa724b09d8b277e1be00da7e288dc121eab8d84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=B3na=20Lore?= Date: Sat, 3 Dec 2016 12:45:53 +0100 Subject: [PATCH] Let _manageSubmit() method save posted values. --- e107_handlers/admin_ui.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/e107_handlers/admin_ui.php b/e107_handlers/admin_ui.php index 3ff86efa0..6280d01e1 100644 --- a/e107_handlers/admin_ui.php +++ b/e107_handlers/admin_ui.php @@ -5090,9 +5090,11 @@ class e_admin_ui extends e_admin_controller_ui $this->convertToData($_POST); - $model->setPostedData($_POST, null, false) - ->setParam('validateAvailable', true) // new param to control validate of available data only, reset on validate event - ->update(true); + $model->setPostedData($_POST, null, false); + $model->setParam('validateAvailable', true); // new param to control validate of available data only, reset on validate event + // Do not update here! Because $old_data and $new_data will be the same in afterUpdate() methods. + // Data will be saved in _manageSubmit() method. + // $model->update(true); if($model->hasError()) {