aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiley L. <riley@e926.de>2025-01-01 22:18:27 +0100
committerRiley L. <riley@e926.de>2025-01-01 22:18:46 +0100
commita23cdf1ee425e024139cc1647a8760c593feac5a (patch)
tree9987cb2d01bcdbf812fcba17349a5e11f1549875
parentd805af1e7845bfe61d7b694af34432be201f117b (diff)
downloadabrechenbarkeit-a23cdf1ee425e024139cc1647a8760c593feac5a.tar
abrechenbarkeit-a23cdf1ee425e024139cc1647a8760c593feac5a.tar.bz2
abrechenbarkeit-a23cdf1ee425e024139cc1647a8760c593feac5a.tar.zst
fix missusage of invalid_price instead of invalid_name when validating new product
-rwxr-xr-xabrechenbarkeit.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/abrechenbarkeit.lua b/abrechenbarkeit.lua
index 5bdd4ab..1243d06 100755
--- a/abrechenbarkeit.lua
+++ b/abrechenbarkeit.lua
@@ -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}")