Skip to content

Commit 3dadc5b

Browse files
author
SharkyKZ
authored
Cleanup
1 parent b59ddf5 commit 3dadc5b

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

libraries/src/MVC/Controller/FormController.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -911,18 +911,6 @@ public function reload($key = null, $urlVar = null)
911911
false
912912
);
913913

914-
// Validate the posted data.
915-
// Sometimes the form needs some posted data, such as for plugins and modules.
916-
$form = $model->getForm($data, false);
917-
918-
if (!$form)
919-
{
920-
$app->enqueueMessage($model->getError(), 'error');
921-
922-
$this->setRedirect($redirectUrl);
923-
$this->redirect();
924-
}
925-
926914
// Save the data in the session.
927915
$app->setUserState($this->option . '.edit.' . $this->context . '.data', $data);
928916

0 commit comments

Comments
 (0)