Koha/koha-tmpl/intranet-tmpl/prog/en
Jonathan Druart 644de1c4e7 Bug 21222: (bug 20226 follow-up) Fix patron creation
Since bug 20226 you cannot longer creation a patron, memberentry.pl will
explode with
Template process failed: undef error - DBIC result _type  isn't of the
_type Category at /home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/includes/str/members-menu.inc
line 22.

The problem is that "patron" is actually defined and the test in
str/members-menu.inc does not work as expected.

It comes from
  commit 7b1d08df0f
  Bug 19936: Replace Generate_Userid - Update the occurrences
where I needed $patron to be defined in order to use Koha::Patron->generate_userid
on an blessed object.
But this was actually wrong, as it could have side-effects.

Test plan:
Create a new patron
Edit it
Retest bug 19936 and make sure the userid is generated correctly in the
different situations

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2018-08-16 13:19:54 +00:00
..
data Bug 20700: MARC21 add/update leader/007/008 codes 2018-06-08 09:48:12 -04:00
includes Bug 21137: Replace USER_INFO with logged_in_user 2018-08-14 12:43:10 +00:00
modules Bug 21222: (bug 20226 follow-up) Fix patron creation 2018-08-16 13:19:54 +00:00
xslt Bug 18236: MARC21 - Add classes to material type on intranet detail and results pages 2018-08-14 12:37:19 +00:00
columns.def Bug 17672: Add damaged_on to items and deleteditems tables 2018-02-18 16:48:43 -03:00