Bug 12159: Fix getting extended patron attributes for circ-menu
[koha.git] / tools / viewlog.pl
index 381b0f8..f38ca19 100755 (executable)
@@ -74,21 +74,12 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
 
 if ( $src eq 'circ' ) {
 
-    # if we were called from circulation, use the circulation menu and get data to populate it -fbcit
-    use C4::Members::Attributes qw(GetBorrowerAttributes);
     my $borrowernumber = $object;
     my $patron = Koha::Patrons->find( $borrowernumber );
     my $circ_info = 1;
     unless ( $patron ) {
          $circ_info = 0;
     }
-    if ( C4::Context->preference('ExtendedPatronAttributes') ) {
-        my $attributes = GetBorrowerAttributes( $borrowernumber );
-        $template->param(
-            ExtendedPatronAttributes => 1,
-            extendedattributes       => $attributes
-        );
-    }
 
     $template->param(
         patron      => $patron,