Skip to content

Commit

Permalink
Validate the selected or posted timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
blackcoder87 committed Nov 15, 2024
1 parent dba683f commit c8820e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions application/modules/admin/controllers/admin/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion application/modules/admin/views/admin/settings/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
</select>
</div>
</div>
<div class="row mb-3">
<div class="row mb-3<?= $this->validation()->hasError('timezone') ? ' has-error' : '' ?>">
<label for="timezone" class="col-xl-2 col-form-label">
<?= $this->getTrans('timezone') ?>:
</label>
Expand Down

0 comments on commit c8820e0

Please sign in to comment.