mirror of
https://github.com/grocy/grocy.git
synced 2026-04-08 21:46:16 +02:00
Fixed prefilled consume page initialization (fixes #1716)
This commit is contained in:
parent
5f8299cf4a
commit
0b36d02aa1
|
|
@ -6,3 +6,4 @@
|
||||||
- Fixed that numeric and date-time sorting of table columns on the stock entries page did not work correctly (thanks @MasterofJOKers)
|
- Fixed that numeric and date-time sorting of table columns on the stock entries page did not work correctly (thanks @MasterofJOKers)
|
||||||
- Fixed that the barcode lookup for the "Stock by-barcode" API endpoints was case sensitive
|
- Fixed that the barcode lookup for the "Stock by-barcode" API endpoints was case sensitive
|
||||||
- Fixed that the logout button/menu was missing when using external authentication (e.g. LDAP)
|
- Fixed that the logout button/menu was missing when using external authentication (e.g. LDAP)
|
||||||
|
- Fixed that the consume page/dialog wasn't properly initialized when opening it from the stock entries page
|
||||||
|
|
|
||||||
|
|
@ -597,7 +597,6 @@ if (GetUriParam("embedded") !== undefined)
|
||||||
if (typeof locationId === 'undefined')
|
if (typeof locationId === 'undefined')
|
||||||
{
|
{
|
||||||
Grocy.Components.ProductPicker.GetPicker().trigger('change');
|
Grocy.Components.ProductPicker.GetPicker().trigger('change');
|
||||||
Grocy.Components.ProductPicker.GetInputElement().focus();
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -605,6 +604,7 @@ if (GetUriParam("embedded") !== undefined)
|
||||||
$("#location_id").trigger('change');
|
$("#location_id").trigger('change');
|
||||||
$("#use_specific_stock_entry").click();
|
$("#use_specific_stock_entry").click();
|
||||||
$("#use_specific_stock_entry").trigger('change');
|
$("#use_specific_stock_entry").trigger('change');
|
||||||
|
Grocy.Components.ProductPicker.GetPicker().trigger('change');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user