Skip to content

Commit 9f4c21e

Browse files
bwalkerlbrendanheywood
authored andcommitted
Prevent blank selectors #35
1 parent 880a180 commit 9f4c21e

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

classes/form/create_dkim.php

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public function definition() {
5858
$mform->setType('selector', PARAM_HOST);
5959

6060
$mform->addGroup($group, 'selector', get_string('selectorcreate', 'tool_emailutils'), '', false);
61+
$mform->addGroupRule('selector', get_string('selectornotblank', 'tool_emailutils'), 'required');
6162

6263
$this->add_action_buttons(true, get_string('selectorcreatesubmit', 'tool_emailutils'));
6364
}

lang/en/tool_emailutils.php

+1
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,4 @@
9191
$string['settings'] = 'AWS SES settings';
9292
$string['username'] = 'Username';
9393
$string['username_help'] = 'HTTP Basic Auth Username';
94+
$string['selectornotblank'] = 'Selector cannot be empty';

version.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525

2626
defined('MOODLE_INTERNAL') || die();
2727

28-
$plugin->version = 2024011500;
29-
$plugin->release = 2024011500;
28+
$plugin->version = 2024011501;
29+
$plugin->release = 2024011501;
3030
$plugin->requires = 2020061500;
3131
$plugin->component = 'tool_emailutils';
3232
$plugin->dependencies = [

0 commit comments

Comments
 (0)