mirror of
https://codeberg.org/metamuffin/abrechenbarkeit.git
synced 2025-01-14 13:14:35 +00:00
fix missusage of invalid_price instead of invalid_name when validating new product
This commit is contained in:
parent
d805af1e78
commit
a23cdf1ee4
1 changed files with 1 additions and 1 deletions
|
@ -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}")
|
||||
|
|
Loading…
Reference in a new issue