1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 13:17:24 +02:00

Let _manageSubmit() method save posted values.

This commit is contained in:
Lóna Lore
2016-12-03 12:45:53 +01:00
parent bc0d50b5c8
commit 8aa724b09d

View File

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