From 1089244eb78e0aa7005ae0f110383caa98f98db8 Mon Sep 17 00:00:00 2001 From: Eduardo Mozart de Oliveira <2974895+eduardomozart@users.noreply.github.com> Date: Wed, 10 Jul 2024 18:52:33 -0300 Subject: [PATCH] Make 'Name' on 'Add a Filter' page obligatory Fix https://github.com/pluginsGLPI/addressing/issues/79 --- inc/filter.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/filter.class.php b/inc/filter.class.php index 63fbf0d..a01ffe3 100644 --- a/inc/filter.class.php +++ b/inc/filter.class.php @@ -97,7 +97,7 @@ function showForm($ID, $options = []) { echo Html::hidden('plugin_addressing_addressings_id', ['value' => $options['items_id']]); echo "" . __('Name') . ""; echo ""; - echo Html::input('name', ['value' => $this->fields['name'], 'size' => 40]); + echo Html::input('name', ['value' => $this->fields['name'], 'size' => 40, 'required' => '']); echo ""; echo "";