From f408ad5d1f576568b42365055dbeeb8ce360d49f Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Mon, 7 Oct 2013 09:53:25 +0200 Subject: [PATCH] finish customer address update --- core/lib/Thelia/Controller/Admin/AddressController.php | 2 ++ templates/admin/default/customer-edit.html | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/core/lib/Thelia/Controller/Admin/AddressController.php b/core/lib/Thelia/Controller/Admin/AddressController.php index c6af8102c..38ec9cb6b 100644 --- a/core/lib/Thelia/Controller/Admin/AddressController.php +++ b/core/lib/Thelia/Controller/Admin/AddressController.php @@ -153,6 +153,8 @@ class AddressController extends AbstractCrudController $event = $this->getCreateOrUpdateEvent($formData); $event->setAddress($this->getExistingObject()); + + return $event; } protected function getCreateOrUpdateEvent($formData) diff --git a/templates/admin/default/customer-edit.html b/templates/admin/default/customer-edit.html index b8c4138b3..69e1815f3 100644 --- a/templates/admin/default/customer-edit.html +++ b/templates/admin/default/customer-edit.html @@ -44,7 +44,7 @@ {/form_field} {if $form_error}
{$form_error_message}
{/if} - + {loop name="address" type="address" customer="$customer_id" backend_context="1" default="true"}

{intl l="Customer informations"}

@@ -74,7 +74,7 @@
{/form_field} - {loop name="address" type="address" customer="$customer_id" backend_context="1" default="true"} +

{intl l="Default address"}