From 52e00216f73e52f5cf5b53483b5010537be00673 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Sat, 9 May 2026 12:40:50 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20admin=20update=20forms=20=E2=80=94=20rest?= =?UTF-8?q?ore=20proper=20value=3D""=20quoting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The security hardening commit accidentally rendered every input value as value=\"...\" (literal backslash-quote in HTML), which mangled all submitted fields including the hidden worker_id/service_id, causing UPDATE to match zero rows and silently no-op. Co-Authored-By: Claude Opus 4.7 --- .../admin/includes/update-service-form.php | 24 +++++++++---------- .../admin/includes/update-worker-form.php | 10 ++++---- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/application/views/admin/includes/update-service-form.php b/application/views/admin/includes/update-service-form.php index 4f468f8..551e4cf 100755 --- a/application/views/admin/includes/update-service-form.php +++ b/application/views/admin/includes/update-service-form.php @@ -1,7 +1,7 @@
- service_id, ENT_QUOTES, 'UTF-8');?>\"> +
service_category_no, ENT_QUOTES, 'UTF-8');?>\"> +
- service_category_en, ENT_QUOTES, 'UTF-8');?>\"> +
- service_category_hu, ENT_QUOTES, 'UTF-8');?>\"> +
- service_name_no, ENT_QUOTES, 'UTF-8');?>\"> +
- service_name_en, ENT_QUOTES, 'UTF-8');?>\"> +
- service_name_hu, ENT_QUOTES, 'UTF-8');?>\"> +
- service_description_no, ENT_QUOTES, 'UTF-8');?>\"> +
- service_description_en, ENT_QUOTES, 'UTF-8');?>\"> +
- service_description_hu, ENT_QUOTES, 'UTF-8');?>\"> +
- service_price, ENT_QUOTES, 'UTF-8');?>\"> +
- service_time, ENT_QUOTES, 'UTF-8');?>\"> +
diff --git a/application/views/admin/includes/update-worker-form.php b/application/views/admin/includes/update-worker-form.php index 53c93dc..df195fe 100755 --- a/application/views/admin/includes/update-worker-form.php +++ b/application/views/admin/includes/update-worker-form.php @@ -1,10 +1,10 @@
- worker_id, ENT_QUOTES, 'UTF-8');?>\"> +
- worker_name, ENT_QUOTES, 'UTF-8');?>\"> +
@@ -15,7 +15,7 @@
- worker_info, ENT_QUOTES, 'UTF-8');?>\"> +
@@ -66,11 +66,11 @@
- google_calendar_id) ? $selectedItem->google_calendar_id : '', ENT_QUOTES, 'UTF-8');?>\"> +
- ntfy_topic) ? $selectedItem->ntfy_topic : '', ENT_QUOTES, 'UTF-8');?>\"> +