Fixed not retrieving correctly the location_id

This commit is contained in:
2018-11-13 14:50:10 +01:00
parent 7098d19225
commit 623770091b
+1 -1
View File
@@ -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>');
}); });
}); });
} }