A free open source IT asset/license management system
Adds check if request has model_id, if so call fetchCustomFields on document ready
Mike Roquemore1b45170ca344
diff --git a/resources/views/hardware/edit.blade.php b/resources/views/hardware/edit.blade.phpindex 0c651cd858..cb544825d4 100755--- a/resources/views/hardware/edit.blade.php+++ b/resources/views/hardware/edit.blade.php@@ -158,6 +158,12 @@<script nonce="{{ csrf_token() }}">+ @if(Request::has('model_id'))+ $(document).ready(function() {+ fetchCustomFields()+ });+ @endif+var transformed_oldvals={};function fetchCustomFields() {@@ -370,4 +376,4 @@</script>-@stop+@stop\ No newline at end of file