Skip to content

Commit 6b90673

Browse files
committed
feat(section): make section title required
Signed-off-by: Thierry Bugier <[email protected]>
1 parent 92c656f commit 6b90673

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/section.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ public function showForm($ID, $options = []) {
378378
echo '<tr>';
379379
echo '<td width="20%">'.__('Title').' <span style="color:red;">*</span></td>';
380380
echo '<td colspan="3">';
381-
echo Html::input('name', ['style' => 'width: calc(100% - 20px)', 'value' => $this->fields['name']]);
381+
echo Html::input('name', ['style' => 'width: calc(100% - 20px)', 'required' => 'required', 'value' => $this->fields['name']]);
382382
echo '</td>';
383383
echo '</tr>';
384384

0 commit comments

Comments
 (0)