mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
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:
commit
bfc8c18675
|
@ -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
|
Loading…
Reference in a new issue