Skip to content

Commit 3eda9b4

Browse files
committed
User: #fix error when extra_field_to_validate_on_user_registration is not set - refs BT#22802 and BT#22752
1 parent 74bf933 commit 3eda9b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/inc/lib/extra_field.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ public function addElements(
851851
}
852852

853853
// 2) If this is the special extra field on a user form, add uniqueness validation
854-
if ($this->type === 'user') {
854+
if ($this->type === 'user' && !empty($uniqueField) && $name === $uniqueField) {
855855
$this->applyExtraFieldUniquenessRule(
856856
$form,
857857
$name,

0 commit comments

Comments
 (0)