Bug 10769 - Simplify clearing of input fields when duplicating a patron
[koha.git] / catalogue / issuehistory.pl
index 2d415e1..a5c4d0d 100755 (executable)
@@ -25,8 +25,8 @@ use C4::Output;
 
 use C4::Circulation;    # GetBiblioIssues
 use C4::Biblio;    # GetBiblio GetBiblioFromItemNumber
-use C4::Dates qw/format_date/;
 use C4::Search;                # enabled_staff_search_views
+use Koha::DateUtils;
 
 my $query = new CGI;
 my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
@@ -61,10 +61,10 @@ if ($itemnumber){
        );
 } else {
        $issues = GetBiblioIssues($biblionumber);
-       my (undef,@biblio)=GetBiblio($biblionumber);
+        my $biblio = GetBiblio($biblionumber);
        my $total  = scalar @$issues;
        $template->param(
-               %{$biblio[0]},
+               %{$biblio},
        );
 } 
 foreach (@{$issues}){