mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Let _manageSubmit() method save posted values.
This commit is contained in:
@@ -5090,9 +5090,11 @@ class e_admin_ui extends e_admin_controller_ui
|
|||||||
|
|
||||||
$this->convertToData($_POST);
|
$this->convertToData($_POST);
|
||||||
|
|
||||||
$model->setPostedData($_POST, null, false)
|
$model->setPostedData($_POST, null, false);
|
||||||
->setParam('validateAvailable', true) // new param to control validate of available data only, reset on validate event
|
$model->setParam('validateAvailable', true); // new param to control validate of available data only, reset on validate event
|
||||||
->update(true);
|
// 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())
|
if($model->hasError())
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user