From aa0c7dd46ad4ff1a602b9d7c55bc5731eade0bbe Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Thu, 23 Apr 2020 14:00:27 +0200 Subject: [PATCH] feat(section): make section title required Signed-off-by: Thierry Bugier --- inc/section.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/section.class.php b/inc/section.class.php index 696569e1e..26a3a4e52 100644 --- a/inc/section.class.php +++ b/inc/section.class.php @@ -438,7 +438,7 @@ public function showForm($ID, $options = []) { echo ''; echo ''.__('Title').' *'; echo ''; - echo Html::input('name', ['style' => 'width: calc(100% - 20px)', 'value' => $this->fields['name']]); + echo Html::input('name', ['style' => 'width: calc(100% - 20px)', 'required' => 'required', 'value' => $this->fields['name']]); echo ''; echo '';