From 8034ddcc4d726c4e1e517ffaeee1475d6ac11f7b Mon Sep 17 00:00:00 2001 From: touffies Date: Wed, 11 Dec 2013 20:53:30 +0100 Subject: [PATCH] Add comments --- .../Thelia/Controller/Admin/AbstractCrudController.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/core/lib/Thelia/Controller/Admin/AbstractCrudController.php b/core/lib/Thelia/Controller/Admin/AbstractCrudController.php index d27d4eced..028d5ab15 100644 --- a/core/lib/Thelia/Controller/Admin/AbstractCrudController.php +++ b/core/lib/Thelia/Controller/Admin/AbstractCrudController.php @@ -385,7 +385,7 @@ abstract class AbstractCrudController extends BaseAdminController // Error (Default: false) $error_msg = false; - // Create the form from the request + // Create the Form from the request $changeForm = $this->getUpdateForm($this->getRequest()); try { @@ -416,7 +416,7 @@ abstract class AbstractCrudController extends BaseAdminController $response = $this->performAdditionalUpdateAction($changeEvent); if ($response == null) { - // If we have to stay on the same page, do not redirect to the succesUrl, + // If we have to stay on the same page, do not redirect to the successUrl, // just redirect to the edit page again. if ($this->getRequest()->get('save_mode') == 'stay') { $this->redirectToEditionTemplate($this->getRequest()); @@ -435,6 +435,7 @@ abstract class AbstractCrudController extends BaseAdminController $error_msg = $ex->getMessage();*/ } + // At this point, the form has errors, and should be redisplayed. $this->setupFormErrorContext( $this->getTranslator()->trans("%obj modification", array('%obj' => $this->objectName)), $error_msg, @@ -442,8 +443,8 @@ abstract class AbstractCrudController extends BaseAdminController $ex ); - // At this point, the form has errors, and should be redisplayed. - return $this->renderEditionTemplate(); + + //return $this->renderEditionTemplate(); } /**