diff --git a/changelog/74_UNRELEASED_xxxx-xx-xx.md b/changelog/74_UNRELEASED_xxxx-xx-xx.md new file mode 100644 index 00000000..1fd2527a --- /dev/null +++ b/changelog/74_UNRELEASED_xxxx-xx-xx.md @@ -0,0 +1,57 @@ +> ⚠️ xxxBREAKING CHANGESxxx + +> ❗ xxxImportant upgrade informationXXX + +> 💡 xxxMinor upgrade informationXXX + +### New feature: xxxx + +- xxx + +### Stock + +- Fixed that the location dropdown on the consume page contained the same location multiple times if there are currently stock entries at multiple locations of the corresponding product + +### Shopping list + +- xxx + +### Recipes + +- xxx + +### Meal plan + +- xxx + +### Chores + +- xxx + +### Calendar + +- xxx + +### Tasks + +- xxx + +### Batteries + +- xxx + +### Equipment + +- xxx + +### Userfields + +- xxx + +### General + +- xxx + +### API + +- xxx diff --git a/public/viewjs/consume.js b/public/viewjs/consume.js index 01274b8a..0146e5e7 100644 --- a/public/viewjs/consume.js +++ b/public/viewjs/consume.js @@ -389,27 +389,36 @@ Grocy.Components.ProductPicker.GetPicker().on('change', function(e) { var setDefault = 0; var stockAmountAtDefaultLocation = 0; + var addedLocations = []; stockLocations.forEach(stockLocation => { if (stockLocation.location_id == defaultLocationId) { - $("#location_id").append($("