mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Small fixes
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
14c61e4c17
commit
9dc7fc93fb
|
@ -27,7 +27,7 @@ class CompaniesTransformer
|
||||||
'id' => (int) $company->id,
|
'id' => (int) $company->id,
|
||||||
'name' => e($company->name),
|
'name' => e($company->name),
|
||||||
'phone' => ($company->phone!='') ? e($company->phone): null,
|
'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,
|
'image' => ($company->image) ? Storage::disk('public')->url('companies/'.e($company->image)) : null,
|
||||||
'created_at' => Helper::getFormattedDateObject($company->created_at, 'datetime'),
|
'created_at' => Helper::getFormattedDateObject($company->created_at, 'datetime'),
|
||||||
'updated_at' => Helper::getFormattedDateObject($company->updated_at, 'datetime'),
|
'updated_at' => Helper::getFormattedDateObject($company->updated_at, 'datetime'),
|
||||||
|
|
|
@ -27,7 +27,7 @@ class DepartmentsTransformer
|
||||||
'id' => (int) $department->id,
|
'id' => (int) $department->id,
|
||||||
'name' => e($department->name),
|
'name' => e($department->name),
|
||||||
'phone' => ($department->phone!='') ? e($department->phone): null,
|
'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,
|
'image' => ($department->image) ? Storage::disk('public')->url(app('departments_upload_url').e($department->image)) : null,
|
||||||
'company' => ($department->company) ? [
|
'company' => ($department->company) ? [
|
||||||
'id' => (int) $department->company->id,
|
'id' => (int) $department->company->id,
|
||||||
|
|
|
@ -44,7 +44,7 @@ class LocationsTransformer
|
||||||
'country' => ($location->country) ? e($location->country) : null,
|
'country' => ($location->country) ? e($location->country) : null,
|
||||||
'zip' => ($location->zip) ? e($location->zip) : null,
|
'zip' => ($location->zip) ? e($location->zip) : null,
|
||||||
'phone' => ($location->phone!='') ? e($location->phone): 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,
|
'assigned_assets_count' => (int) $location->assigned_assets_count,
|
||||||
'assets_count' => (int) $location->assets_count,
|
'assets_count' => (int) $location->assets_count,
|
||||||
'rtd_assets_count' => (int) $location->rtd_assets_count,
|
'rtd_assets_count' => (int) $location->rtd_assets_count,
|
||||||
|
|
|
@ -42,7 +42,7 @@ class CompanyPresenter extends Presenter
|
||||||
'searchable' => true,
|
'searchable' => true,
|
||||||
'sortable' => true,
|
'sortable' => true,
|
||||||
'switchable' => true,
|
'switchable' => true,
|
||||||
'title' => trans('admin/suppliers/table.phone'),
|
'title' => trans('admin/suppliers/table.fax'),
|
||||||
'visible' => false,
|
'visible' => false,
|
||||||
'formatter' => 'phoneFormatter',
|
'formatter' => 'phoneFormatter',
|
||||||
], [
|
], [
|
||||||
|
|
Loading…
Reference in a new issue