]> git.koha-community.org Git - koha.git/commit
Bug 24419: Add Koha::Suggestion->suggester accessor
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 14 Jan 2020 15:47:19 +0000 (12:47 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 20 Jan 2020 16:37:22 +0000 (16:37 +0000)
commitd0446c835c88c44711cc98dba95ccc757bada54b
tree755dbf4ed078ce0e0d83d7b18fc5a5395935066d
parent000cf4eba32fe67fb41d797583f3a13e3896c3d6
Bug 24419: Add Koha::Suggestion->suggester accessor

This patch adds a ->suggester accessor to the Koha::Suggestion class. It
will return undef if no suggester, and a Koha::Patron object otherwise.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Suggestion.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Schema/Result/Suggestion.pm
Koha/Suggestion.pm
t/db_dependent/Koha/Suggestion.t [new file with mode: 0644]