A free open source IT asset/license management system
Check for multiple variable (for bulk checkout)
snipe379274defff1
diff --git a/resources/views/partials/forms/edit/asset-select.blade.php b/resources/views/partials/forms/edit/asset-select.blade.phpindex 6df7a948ef..cf42207ab8 100644--- a/resources/views/partials/forms/edit/asset-select.blade.php+++ b/resources/views/partials/forms/edit/asset-select.blade.php@@ -2,7 +2,7 @@<div id="{{ $fieldname }}" class="form-group{{ $errors->has($fieldname) ? ' has-error' : '' }}">{{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }}<div class="col-md-7 required">- <select class="js-data-ajax" data-endpoint="hardware" name="{{ $fieldname }}" style="width: 100%" id="assigned_asset_select">+ <select class="js-data-ajax select2" data-endpoint="hardware" name="{{ $fieldname }}" style="width: 100%" id="assigned_asset_select"{{ (isset($multiple)) ? ' multiple="multiple"' : '' }}>@if ($asset_id = Input::old($fieldname, (isset($item)) ? $item->{$fieldname} : ''))<option value="{{ $asset_id }}" selected="selected">{{ \App\Models\Asset::find($asset_id)->present()->fullName }}