Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Fridolin Somers dccbba1d67 ug 11857 - Number of patrons on a patron list not accurate
When creating a patron list with only 1 patron, the patron
lists page says that the list contains 3 patrons.
When creating a patron list with only 1 patron, it works fine.

This is caused by the fact that access on "patron_list_patrons"
Koha::Schema::Result::PatronList object returns an hash if one
result and an array if more results.
See similar problem at
http://permalink.gmane.org/gmane.comp.lang.perl.modules.template-toolkit/7250

This patch replaces by the call on resultset and then the use of
"count" method.

Test plan :
- Go to patron lists : /cgi-bin/koha/patron_lists/lists.pl
- Create a new patron list LIO
- Add one patron
- Create a new patron list LIM
- Add 2 patrons
- Go to patron lists : /cgi-bin/koha/patron_lists/lists.pl
=> Without this patch you see :
  Name  Patrons in list
  LIO   3
  LIM   2
=> With this patch you see :
  Name  Patrons in list
  LIO   1
  LIM   2

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Work as described, no koha-qa errors.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes all tests and QA script. Confirmed the problem and that
the patch fixes it.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2014-07-02 15:44:14 -03:00
..
acqui Bug 3050: QA follow-up 2014-05-25 21:15:03 +00:00
admin Bug 12231 - Update AllowMultipleIssuesOnABiblio language 2014-06-23 15:08:16 -03:00
authorities
basket Bug 11357 - biblioitems.size value not correctly displayed in list emails sent from OPAC and intranet 2014-07-01 15:29:29 +12:00
batch
catalogue Bug 12379: remove double use of plugin KohaDates 2014-06-21 19:11:18 -03:00
cataloguing Bug 12419: Not for loan items are not listed 2014-06-30 15:57:23 -03:00
circ Bug 12337 - Multi-clicking the renewal buttons on circulation.pl can trigger "renewal failed" message. 2014-07-01 09:47:38 -03:00
course_reserves
errors
help Bug 12367 - Import patrons still says "MD5 hash" 2014-06-21 19:15:16 -03:00
installer
labels
members Bug 9811 [QA Followup] - Enable bProcessing 2014-07-02 15:13:43 -03:00
offline_circ
patron_lists ug 11857 - Number of patrons on a patron list not accurate 2014-07-02 15:44:14 -03:00
patroncards Bug 11365: (follow-up) trim whitespace in the translate_card_element block 2014-05-23 14:46:54 +00:00
plugins
reports
reserve
reviews
rotating_collections
serials Bug 11742: Change return type for GetLetters 2014-06-23 15:19:55 -03:00
services
sms
suggestion
tags
test
tools Bug 11742: FIX the code parameter was not take into account 2014-06-23 15:19:56 -03:00
virtualshelves Bug 11357 - biblioitems.size value not correctly displayed in list emails sent from OPAC and intranet 2014-07-01 15:29:29 +12:00
z3950
about.tt Bug 7143: Updating new developers 2014-06-30 10:01:52 -03:00
auth.tt
intranet-main.tt