@@ -, +, @@ categories 1 - Create a new patron attribute - check boxes to make it mandatory and visible etc. 2 - Limit it to 'Patron' or other category 3 - Edit a patron not in that category 4 - Attempt to save 5 - 500 Error 6 - Missing mandatory extended attribute (type=MAND) 7 - Apply patch 8 - Attempt aedit again 9 - It succeeds! --- Koha/Patron.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/Koha/Patron.pm +++ a/Koha/Patron.pm @@ -1707,8 +1707,9 @@ sub extended_attributes { Koha::Patron::Attribute::Types->search( { mandatory => 1, + category_code => [ undef, $self->categorycode ], 'borrower_attribute_types_branches.b_branchcode' => - undef + undef, }, { join => 'borrower_attribute_types_branches' } )->get_column('code'); --