mirror of
https://github.com/grocy/grocy.git
synced 2025-08-16 02:34:44 +00:00
Removed type conversions where no longer needed
PHP 8.1 PDO SQLite now returns native data types
This commit is contained in:
@@ -148,7 +148,7 @@ Grocy.Components.UserfieldsForm.Load = function()
|
||||
}
|
||||
else if (input.attr('type') == "file")
|
||||
{
|
||||
if (value != null && !value.isEmpty())
|
||||
if (value)
|
||||
{
|
||||
var fileName = atob(value.split('_')[1]);
|
||||
var fileSrc = value.split('_')[0];
|
||||
@@ -178,7 +178,7 @@ Grocy.Components.UserfieldsForm.Load = function()
|
||||
}
|
||||
else if (input.attr("data-userfield-type") == "link")
|
||||
{
|
||||
if (value != null && !value.isEmpty())
|
||||
if (value)
|
||||
{
|
||||
var data = JSON.parse(value);
|
||||
|
||||
|
Reference in New Issue
Block a user