]> git.koha-community.org Git - koha.git/commit
Bug 18731: Overload K::A::Fund->to_api to avoid conflict
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 13 Jan 2020 18:44:33 +0000 (15:44 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 14 Jan 2020 09:24:31 +0000 (09:24 +0000)
commitc742686651b155c409486ae3aa4d54ebc288c0a9
tree4b10d21a30bfd8b9ba5b97933bd949873d77146b
parentcfba7e7364dc1f1fd84dfff3021b51c06d159c92
Bug 18731: Overload K::A::Fund->to_api to avoid conflict

This patch overloads the to_api methods on the Fund class, so
conflicting (on mapping) attribute names are not a problem.

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

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Acquisition/Fund.pm
t/db_dependent/Koha/Acquisition/Fund.t [new file with mode: 0644]