Bug 20934: (QA follow-up) Fix showing number of records in checkout history
authorJosef Moravec <josef.moravec@gmail.com>
Mon, 18 Jun 2018 15:48:12 +0000 (15:48 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 22 Jun 2018 12:47:49 +0000 (12:47 +0000)
Test plan:
0) Do not apply this patch
1) Go to biblio checkout history page (issuehistory.pl)
2) You'll see something like "Checked out ARRAY(0xf830378) times"
3) Apply this patch
4) Now you should see number of checkout history records

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt

index e831fa6..785857a 100644 (file)
@@ -27,7 +27,7 @@
 
 <div class="searchresults">
     [% IF checkouts %]
-        <h4>Checked out [% checkouts %] times</h4>
+        <h4>Checked out [% checkouts.size %] times</h4>
         <table id="table_issues">
             <thead><tr>
             [% IF Koha.Preference('intranetreadinghistory') AND CAN_user_circulate_circulate_remaining_permissions %]