mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Removde the /objects/{entity}/search API endpoint, added the new filter capabilities to /objects/{entity} (references #985)
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user