From c8820e09f00782432a80bc03217ba2bc5b2f30f9 Mon Sep 17 00:00:00 2001 From: blackcoder87 Date: Fri, 15 Nov 2024 14:41:54 +0100 Subject: [PATCH] Validate the selected or posted timezone --- application/modules/admin/controllers/admin/Settings.php | 1 + application/modules/admin/views/admin/settings/index.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/application/modules/admin/controllers/admin/Settings.php b/application/modules/admin/controllers/admin/Settings.php index 77630acfe..6878530e5 100644 --- a/application/modules/admin/controllers/admin/Settings.php +++ b/application/modules/admin/controllers/admin/Settings.php @@ -112,6 +112,7 @@ public function indexAction() 'multilingualAcp' => 'required|numeric|integer|min:0|max:1', 'domain' => 'domain', 'standardMail' => 'required|email', + 'timezone' => 'required|timezone', 'defaultPaginationObjects' => 'numeric|integer|min:1', 'hmenuFixed' => 'required|numeric|integer|min:0|max:1', 'htmlPurifier' => 'required|numeric|integer|min:0|max:1', diff --git a/application/modules/admin/views/admin/settings/index.php b/application/modules/admin/views/admin/settings/index.php index 4bb2bbce4..c5b75a3b9 100644 --- a/application/modules/admin/views/admin/settings/index.php +++ b/application/modules/admin/views/admin/settings/index.php @@ -109,7 +109,7 @@ -
+