A free open source IT asset/license management system
Add postal code to locations listing
snipe84e06f464211
diff --git a/app/Http/Controllers/LocationsController.php b/app/Http/Controllers/LocationsController.phpindex 4d1ebc4ee8..e8589b62c4 100755--- a/app/Http/Controllers/LocationsController.php+++ b/app/Http/Controllers/LocationsController.php@@ -318,7 +318,7 @@ class LocationsController extends Controller$locations = $locations->OrderParent($order);break;default:- $allowed_columns = ['id','name','address','city','state','country','currency'];+ $allowed_columns = ['id','name','address','city','state','country','currency','zip'];$sort = in_array(Input::get('sort'), $allowed_columns) ? Input::get('sort') : 'created_at';$locations = $locations->orderBy($sort, $order);@@ -344,6 +344,7 @@ class LocationsController extends Controller'address' => ($location->address) ? e($location->address): '','city' => e($location->city),'state' => e($location->state),+ 'zip' => e($location->zip),'country' => e($location->country),'currency' => e($location->currency),'actions' => $actionsdiff --git a/resources/views/locations/index.blade.php b/resources/views/locations/index.blade.phpindex eed041a2fc..87df061d9d 100755--- a/resources/views/locations/index.blade.php+++ b/resources/views/locations/index.blade.php@@ -41,6 +41,9 @@<th data-searchable="true" data-sortable="true" data-field="state">{{ trans('admin/locations/table.state') }}</th>+ <th data-searchable="true" data-sortable="true" data-field="zip">+ {{ trans('admin/locations/table.zip') }}+ </th><th data-searchable="true" data-sortable="true" data-field="country">{{ trans('admin/locations/table.country') }}</th><th data-switchable="false" data-searchable="false" data-sortable="false" data-field="actions">{{ trans('table.actions') }}</th>