A free open source IT asset/license management system
Fix bug in image process logic that wouldn't resize the height. Also make it possible to choose files from android as well as pictures directly.
Daniel Meltzerb3454b1c2450
diff --git a/resources/views/hardware/edit.blade.php b/resources/views/hardware/edit.blade.phpindex 6642ef88c8..ebdbb54bd9 100755--- a/resources/views/hardware/edit.blade.php+++ b/resources/views/hardware/edit.blade.php@@ -373,7 +373,7 @@<label class="col-md-3 control-label" for="image">{{ trans('general.image_upload') }}</label><div class="col-md-5"><!-- {{ Form::file('image') }} -->- <input type="file" id="file-upload" accept="image/*" capture="camera" name="image">+ <input type="file" id="file-upload" accept="image/*" name="image">{!! $errors->first('image', '<span class="alert-msg">:message</span>') !!}</div></div>@@ -561,7 +561,7 @@ $(function () {newWidth = maxWidth;} else {newWidth = width * (maxHeight/height);- newHeight = height;+ newHeight = maxHeight;}var canvas = document.createElement('canvas');