mirror of
https://github.com/grocy/grocy.git
synced 2025-08-15 18:26:00 +00:00
Removed type conversions where no longer needed
PHP 8.1 PDO SQLite now returns native data types
This commit is contained in:
@@ -95,7 +95,7 @@ $('.product-combobox').combobox({
|
||||
|
||||
var prefillProduct = GetUriParam('product-name');
|
||||
var prefillProduct2 = Grocy.Components.ProductPicker.GetPicker().parent().data('prefill-by-name').toString();
|
||||
if (!prefillProduct2.isEmpty())
|
||||
if (prefillProduct2)
|
||||
{
|
||||
prefillProduct = prefillProduct2;
|
||||
}
|
||||
@@ -120,7 +120,7 @@ if (typeof prefillProduct !== "undefined")
|
||||
|
||||
var prefillProductId = GetUriParam("product");
|
||||
var prefillProductId2 = Grocy.Components.ProductPicker.GetPicker().parent().data('prefill-by-id').toString();
|
||||
if (!prefillProductId2.isEmpty())
|
||||
if (prefillProductId2)
|
||||
{
|
||||
prefillProductId = prefillProductId2;
|
||||
}
|
||||
|
Reference in New Issue
Block a user