Skip to content

Commit 42b7efa

Browse files
committed
fix(ldapfield): missing error message
1 parent eee96e4 commit 42b7efa

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

inc/field/ldapselectfield.class.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ public function prepareQuestionInputForSave($input) {
151151
if (isset($ldap_values['ldap_attribute'])) {
152152
$ldap_dropdown = RuleRightParameter::getById((int) $ldap_values['ldap_attribute']);
153153
if (!($ldap_dropdown instanceof RuleRightParameter)) {
154+
Session::addMessageAfterRedirect(__('LDAP attribute is required!', 'formcreator'), false, ERROR);
154155
return [];
155156
}
156157
}

0 commit comments

Comments
 (0)