Removde the /objects/{entity}/search API endpoint, added the new filter capabilities to /objects/{entity} (references #985)

This commit is contained in:
Bernd Bestel
2020-11-14 11:27:13 +01:00
parent 16b17b25a4
commit 62997d39bc
5 changed files with 6 additions and 99 deletions

View File

@@ -271,7 +271,7 @@ if (Grocy.Components.ProductPicker !== undefined)
if (document.getElementById("product_id").getAttribute("barcode") != "null")
{
Grocy.Api.Get('objects/product_barcodes/search/?query[]=barcode=' + document.getElementById("product_id").getAttribute("barcode"),
Grocy.Api.Get('objects/product_barcodes?query[]=barcode=' + document.getElementById("product_id").getAttribute("barcode"),
function(barcodeResult)
{
if (barcodeResult != null)