From f3ec2808f314d5d137a4f437784c8572b27ddb9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20Gla=CC=88ser?= Date: Mon, 15 Jun 2026 14:32:21 +0200 Subject: [PATCH] OTC-Reset nur fuer Produkte und Preis --- modules/shared/auth/ui/home.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/shared/auth/ui/home.php b/modules/shared/auth/ui/home.php index 9d8dfad..f791d8e 100644 --- a/modules/shared/auth/ui/home.php +++ b/modules/shared/auth/ui/home.php @@ -393,7 +393,8 @@ function render_auth_home_page(array $user, array $otcProducts = []): void echo " return isValid;"; echo " };"; echo " const resetForm = (preserveSuccess = false) => {"; - echo " form.reset();"; + echo " productInputs.forEach((input) => { input.value = ''; });"; + echo " if (totalPriceInput) { totalPriceInput.value = ''; }"; echo " clearError();"; echo " if (!preserveSuccess) { clearSuccess(); }"; echo " if (!preserveSuccess) { updateFormState(); }";