From 26fa837e61d9ca867547fcd147dd9ab46be9af5c Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 21 Dec 2015 12:31:59 +0000 Subject: [PATCH] Bug 12636: Do not display unique patron attributes in the batch patron modification MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Batch patron modification should not offer to update patron attributes with values which are designated as unique since such attributes are required to be unique to a single patron. Test plan: Create some patron attributes, some should be unique. Use the batch patron modification tool to modify patrons. With this patch, the patron attributes marked as unique won't be display anymore. Signed-off-by: Marc VĂ©ron --- tools/modborrowers.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/modborrowers.pl b/tools/modborrowers.pl index 4172bc3..2993225 100755 --- a/tools/modborrowers.pl +++ b/tools/modborrowers.pl @@ -106,6 +106,7 @@ if ( $op eq 'show' ) { my $patron_categories = C4::Members::GetBorrowercategoryList; for ( values %$patron_attribute_types ) { my $attr_type = C4::Members::AttributeTypes->fetch( $_->{code} ); + next if $attr_type->{unique_id}; my $options = $attr_type->authorised_value_category ? GetAuthorisedValues( $attr_type->authorised_value_category ) : undef; -- 1.7.10.4