fix missusage of invalid_price instead of invalid_name when validating new product

This commit is contained in:
Riley L. 2025-01-01 22:18:27 +01:00
parent d805af1e78
commit a23cdf1ee4

View file

@ -669,7 +669,7 @@ local function r_products_post()
return error_box("{+error.invalid_price}")
end
if name == nil or name:match(matchers_global.name) == nil then
return error_box("{+error.invalid_price}")
return error_box("{+error.invalid_name}")
end
if user == nil or user:match(matchers_global.user) == nil then
return error_box("{+error.invalid_user}")