Completed the backoffice variable management

This commit is contained in:
franck
2013-09-02 00:17:27 +02:00
parent 6d5d0f6606
commit 5670855dd6
51 changed files with 1144 additions and 288 deletions

View File

@@ -63,7 +63,7 @@ class CartController extends BaseFrontController
if ($message) {
$cartAdd->setErrorMessage($message);
$this->getParserContext()->setErrorForm($cartAdd);
$this->getParserContext()->addForm($cartAdd);
}
}

View File

@@ -75,10 +75,10 @@ class CustomerController extends BaseFrontController
if ($message !== false) {
Tlog::getInstance()->error(sprintf("Error during customer creation process : %s. Exception was %s", $message, $e->getMessage()));
$customerLoginForm->setErrorMessage($message);
$customerCreation->setErrorMessage($message);
$this->getParserContext()
->setErrorForm($customerLoginForm)
->addForm($customerCreation)
->setGeneralError($message)
;
}
@@ -123,10 +123,10 @@ class CustomerController extends BaseFrontController
if ($message !== false) {
Tlog::getInstance()->error(sprintf("Error during customer modification process : %s. Exception was %s", $message, $e->getMessage()));
$customerLoginForm->setErrorMessage($message);
$customerModification->setErrorMessage($message);
$this->getParserContext()
->setErrorForm($customerLoginForm)
->addForm($customerModification)
->setGeneralError($message)
;
}
@@ -183,7 +183,7 @@ class CustomerController extends BaseFrontController
$customerLoginForm->setErrorMessage($message);
$this->getParserContext()->setErrorForm($customerLoginForm);
$this->getParserContext()->addForm($customerLoginForm);
}
}
}