Merge pull request #11451 from mikeroq/fixes/populate_custom_fields_from_asset_model_create

Fixes custom fields not populating when creating asset from asset model page
This commit is contained in:
snipe 2022-07-05 17:31:08 -07:00 committed by GitHub
commit bfc8c18675
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,6 +158,13 @@
<script nonce="{{ csrf_token() }}">
@if(Request::has('model_id'))
//TODO: Refactor custom fields to use Livewire, populate from server on page load when requested with model_id
$(document).ready(function() {
fetchCustomFields()
});
@endif
var transformed_oldvals={};
function fetchCustomFields() {
@ -370,4 +377,4 @@
</script>
@stop
@stop