Merge branch 'develop' of https://github.com/snipe/snipe-it into develop

This commit is contained in:
snipe 2018-10-15 17:02:39 -07:00
commit 9797412d23
2 changed files with 3 additions and 2 deletions

View file

@ -171,8 +171,8 @@ class AssetsController extends Controller
}
}
// Was the asset created?
if ($asset->save()) {
// Validate the asset before saving
if ($asset->isValid() && $asset->save()) {
if (request('assigned_user')) {
$target = User::find(request('assigned_user'));

View file

@ -35,6 +35,7 @@
</div>
@endif
{!! $errors->first('asset_tags', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
{!! $errors->first('asset_tag', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
</div>
@include ('partials.forms.edit.serial', ['fieldname'=> 'serials[1]', 'translated_serial' => trans('admin/hardware/form.serial')])