From 12958553022d4b7b2184ebf837d4113b23f5cf27 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 26 Nov 2013 02:12:32 -0500 Subject: [PATCH] Fixes #51 --- app/controllers/admin/LocationsController.php | 2 ++ app/views/backend/locations/edit.blade.php | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/app/controllers/admin/LocationsController.php b/app/controllers/admin/LocationsController.php index a64fe9ac8355..a788205b5089 100644 --- a/app/controllers/admin/LocationsController.php +++ b/app/controllers/admin/LocationsController.php @@ -66,6 +66,7 @@ public function postCreate() $location->city = e(Input::get('city')); $location->state = e(Input::get('state')); $location->country = e(Input::get('country')); + $location->zip = e(Input::get('zip')); $location->user_id = Sentry::getId(); // Was the asset created? @@ -141,6 +142,7 @@ public function postEdit($locationId = null) $location->city = e(Input::get('city')); $location->state = e(Input::get('state')); $location->country = e(Input::get('country')); + $location->zip = e(Input::get('zip')); // Was the asset created? if($location->save()) diff --git a/app/views/backend/locations/edit.blade.php b/app/views/backend/locations/edit.blade.php index e3d9cad6f662..f4d1ebe5bc66 100755 --- a/app/views/backend/locations/edit.blade.php +++ b/app/views/backend/locations/edit.blade.php @@ -61,6 +61,14 @@ +
+ +
+ + {{ $errors->first('zip', ':message') }} +
+
+