From 6b9067359560be841e72e99dd3c64f62ca77b76e 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 7d29025c4..8cbea8ee8 100644 --- a/inc/section.class.php +++ b/inc/section.class.php @@ -378,7 +378,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 '';