Bug 22844: Make the attribute mandatory when editing a patron
[koha.git] / members / memberentry.pl
index ec6c08c..985a964 100755 (executable)
@@ -913,6 +913,7 @@ sub patron_attributes_form {
             repeatable        => $attr_type->repeatable(),
             category          => $attr_type->authorised_value_category(),
             category_code     => $attr_type->category_code(),
+            mandatory         => $attr_type->mandatory(),
         };
         if (exists $attr_hash{$attr_type->code()}) {
             foreach my $attr (@{ $attr_hash{$attr_type->code()} }) {