diff --git a/app/Http/Controllers/CategoriesController.php b/app/Http/Controllers/CategoriesController.php index 9f122dff4e..5599dd5e42 100755 --- a/app/Http/Controllers/CategoriesController.php +++ b/app/Http/Controllers/CategoriesController.php @@ -55,7 +55,7 @@ class CategoriesController extends Controller // Show the page $category_types= Helper::categoryTypeList(); return View::make('categories/edit')->with('item', new Category) - ->with('category_types', $category_types); + ->with('category_types', $category_types); } diff --git a/app/Models/Asset.php b/app/Models/Asset.php index 4aca40fb53..995f4085fb 100644 --- a/app/Models/Asset.php +++ b/app/Models/Asset.php @@ -116,7 +116,7 @@ class Asset extends Depreciable if ($this->save()) { - $this->logCheckout($note); + $log = $this->logCheckout($note); if ((($this->requireAcceptance()=='1') || ($this->getEula())) && ($user->email!='')) { $this->checkOutNotifyMail($log->id, $user, $checkout_at, $expected_checkin, $note); } diff --git a/app/Presenters/AssetPresenter.php b/app/Presenters/AssetPresenter.php index 9d3760ef54..8fb9e76a9e 100644 --- a/app/Presenters/AssetPresenter.php +++ b/app/Presenters/AssetPresenter.php @@ -193,14 +193,13 @@ class AssetPresenter extends Presenter **/ public function name() { - if (empty($this->name)) { if (isset($this->model)) { return $this->model->name.' ('.$this->asset_tag.')'; } return $this->asset_tag; } else { - return $this->name; + return $this->name.' ('.$this->asset_tag.')'; } } diff --git a/app/Presenters/ConsumablePresenter.php b/app/Presenters/ConsumablePresenter.php index cd91ce9d2c..aa31cd2eff 100644 --- a/app/Presenters/ConsumablePresenter.php +++ b/app/Presenters/ConsumablePresenter.php @@ -62,7 +62,7 @@ class ConsumablePresenter extends Presenter * Link to this consumables name * @return string */ - private function nameUrl() + public function nameUrl() { return (string)link_to_route('consumables.show', $this->name, $this->id); } diff --git a/app/Presenters/UserPresenter.php b/app/Presenters/UserPresenter.php index 6806de68c8..0bcc9ef1de 100644 --- a/app/Presenters/UserPresenter.php +++ b/app/Presenters/UserPresenter.php @@ -65,7 +65,7 @@ class UserPresenter extends Presenter $result = [ 'id' => $this->id, 'checkbox' => ($status!='deleted') ? '
' : '', - 'name' => $this->fullName(), + 'name' => $this->nameUrl(), 'jobtitle' => $this->jobtitle, 'email' => $this->emailLink(), 'username' => $this->username, diff --git a/resources/views/accessories/checkin.blade.php b/resources/views/accessories/checkin.blade.php index 5dcc762cf8..5749be8f59 100755 --- a/resources/views/accessories/checkin.blade.php +++ b/resources/views/accessories/checkin.blade.php @@ -24,12 +24,10 @@ - - @if ($accessory->name){{ $accessory->name }}
{{ $accessory->name }}
-{{ $accessory->name }}
+{{ $accessory->category->name }}
-{{ $accessory->category->name }}
+{{ trans('admin/categories/general.required_eula') }}
| {{ trans('general.user') }} | -{{ trans('table.actions') }} | -
|---|
| {{ trans('general.user') }} | +{{ trans('table.actions') }} | +
|---|
{{ trans('admin/accessories/general.about_accessories_text') }}