From 9dc7fc93fbcaf2301021182b42e71c161dd2110f Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 11 Jul 2023 11:14:19 +0100 Subject: [PATCH] Small fixes Signed-off-by: snipe --- app/Http/Transformers/CompaniesTransformer.php | 2 +- app/Http/Transformers/DepartmentsTransformer.php | 2 +- app/Http/Transformers/LocationsTransformer.php | 2 +- app/Presenters/CompanyPresenter.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Http/Transformers/CompaniesTransformer.php b/app/Http/Transformers/CompaniesTransformer.php index 486fb21672..4726630c4e 100644 --- a/app/Http/Transformers/CompaniesTransformer.php +++ b/app/Http/Transformers/CompaniesTransformer.php @@ -27,7 +27,7 @@ class CompaniesTransformer 'id' => (int) $company->id, 'name' => e($company->name), 'phone' => ($company->phone!='') ? e($company->phone): null, - 'fax' => ($company->phone!='') ? e($company->fax): null, + 'fax' => ($company->fax!='') ? e($company->fax): null, 'image' => ($company->image) ? Storage::disk('public')->url('companies/'.e($company->image)) : null, 'created_at' => Helper::getFormattedDateObject($company->created_at, 'datetime'), 'updated_at' => Helper::getFormattedDateObject($company->updated_at, 'datetime'), diff --git a/app/Http/Transformers/DepartmentsTransformer.php b/app/Http/Transformers/DepartmentsTransformer.php index 82adc9324c..546cedf04f 100644 --- a/app/Http/Transformers/DepartmentsTransformer.php +++ b/app/Http/Transformers/DepartmentsTransformer.php @@ -27,7 +27,7 @@ class DepartmentsTransformer 'id' => (int) $department->id, 'name' => e($department->name), 'phone' => ($department->phone!='') ? e($department->phone): null, - 'fax' => ($department->phone!='') ? e($department->fax): null, + 'fax' => ($department->fax!='') ? e($department->fax): null, 'image' => ($department->image) ? Storage::disk('public')->url(app('departments_upload_url').e($department->image)) : null, 'company' => ($department->company) ? [ 'id' => (int) $department->company->id, diff --git a/app/Http/Transformers/LocationsTransformer.php b/app/Http/Transformers/LocationsTransformer.php index 59bf525c4f..635a90cbc7 100644 --- a/app/Http/Transformers/LocationsTransformer.php +++ b/app/Http/Transformers/LocationsTransformer.php @@ -44,7 +44,7 @@ class LocationsTransformer 'country' => ($location->country) ? e($location->country) : null, 'zip' => ($location->zip) ? e($location->zip) : null, 'phone' => ($location->phone!='') ? e($location->phone): null, - 'fax' => ($location->phone!='') ? e($location->fax): null, + 'fax' => ($location->fax!='') ? e($location->fax): null, 'assigned_assets_count' => (int) $location->assigned_assets_count, 'assets_count' => (int) $location->assets_count, 'rtd_assets_count' => (int) $location->rtd_assets_count, diff --git a/app/Presenters/CompanyPresenter.php b/app/Presenters/CompanyPresenter.php index 0ab3021b54..767def2e36 100644 --- a/app/Presenters/CompanyPresenter.php +++ b/app/Presenters/CompanyPresenter.php @@ -42,7 +42,7 @@ class CompanyPresenter extends Presenter 'searchable' => true, 'sortable' => true, 'switchable' => true, - 'title' => trans('admin/suppliers/table.phone'), + 'title' => trans('admin/suppliers/table.fax'), 'visible' => false, 'formatter' => 'phoneFormatter', ], [