Fixed not retrieving correctly the location_id

master
Davide Bongiovanni 6 years ago
parent 7098d19225
commit 623770091b

@ -218,7 +218,7 @@ function container_onchange() {
$('#location-dropdown').empty(); $('#location-dropdown').empty();
$.getJSON('parts/getlocationsInContainer/' + selected_container_id, function(data) { $.getJSON('parts/getlocationsInContainer/' + selected_container_id, function(data) {
$.each(data, function(location_id, location_name) { $.each(data, function(location_id, location_name) {
$('#location-dropdown').append('<option val="' + location_id + '">' + location_name + '</option>'); $('#location-dropdown').append('<option value="' + location_id + '">' + location_name + '</option>');
}); });
}); });
} }

Loading…
Cancel
Save