[Koha-bugs] [Bug 18494] Fix Letters.t (follow-up of 15702)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Apr 27 02:56:26 CEST 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18494

M. Tompsett <mtompset at hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #62707|0                           |1
        is obsolete|                            |

--- Comment #6 from M. Tompsett <mtompset at hotmail.com> ---
Created attachment 62749
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=62749&action=edit
Bug 18494: Fix Letters.t (follow-up of 15702)

koha at kohacommunity:~/kohaclone$ perl t/db_dependent/Letters.t
1..81
ok 1 - use C4::Context;
ok 2 - use C4::Members;
ok 3 - use C4::Acquisition;
ok 4 - use C4::Biblio;
ok 5 - use C4::Letters;
Can't call method "get_expiry_date" on an undefined value at
/home/koha/kohaclone/C4/Members.pm line 465.
Looks like your test exited with 7 just after 5.

This is caused by the new trimming functionality in AddMember when categorycode
is passed as a HASHref. Before trimming, make sure that the value is not a ref.

To test:
1. perl t/db_dependent/Letters.t
2. Observe above failure
3. Apply patch
4. Watch it pass
5. Also prove t/db_dependent/Members.t

NOTE: Oops! Thanks for the fix.
Signed-off-by: Mark Tompsett <mtompset at hotmail.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list