Fixed not retrieving correctly the location_id
This commit is contained in:
@@ -218,7 +218,7 @@ function container_onchange() {
|
||||
$('#location-dropdown').empty();
|
||||
$.getJSON('parts/getlocationsInContainer/' + selected_container_id, function(data) {
|
||||
$.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>');
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user