Fixed location_id handling when FEATURE_FLAG_STOCK_LOCATION_TRACKING is disabled (fixes #532)

This commit is contained in:
Bernd Bestel
2020-01-31 21:27:51 +01:00
parent 170c7627fd
commit b8c6ac6905
7 changed files with 7 additions and 19 deletions

View File

@@ -20,10 +20,6 @@
{
jsonData.location_id = $("#location_id").val();
}
else
{
jsonData.location_id = 1;
}
if (Grocy.FeatureFlags.GROCY_FEATURE_FLAG_RECIPES && Grocy.Components.RecipePicker.GetValue().toString().length > 0)
{

View File

@@ -21,10 +21,7 @@
{
jsonData.location_id = Grocy.Components.LocationPicker.GetValue();
}
else
{
jsonData.location_id = 1;
}
jsonData.price = price;
var bookingResponse = null;

View File

@@ -34,10 +34,6 @@
{
jsonData.location_id = Grocy.Components.LocationPicker.GetValue();
}
else
{
jsonData.location_id = 1;
}
Grocy.Api.Post('stock/products/' + jsonForm.product_id + '/add', jsonData,
function(result)