Skip to content

A free open source IT asset/license management system

Add a hidden field to handle departments inside Full Company Support config

Ivan Nieto Vivanco1b8156ac7f0e
diff --git a/resources/views/departments/edit.blade.php b/resources/views/departments/edit.blade.php
index 739f19f1f2..0a2c1a7d46 100644
--- a/resources/views/departments/edit.blade.php
+++ b/resources/views/departments/edit.blade.php
@@ -12,6 +12,8 @@
<!-- Company -->
@if (\App\Models\Company::canManageUsersCompanies())
@include ('partials.forms.edit.company-select', ['translated_name' => trans('general.company'), 'fieldname' => 'company_id'])
+ @else
+ <input id="hidden_company_id" type="hidden" name="company_id" value="{{ Auth::user()->company_id }}">
@endif