https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23843
Joonas Kylmälä <joonas.kylm...@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #94588|0 |1 is obsolete| | --- Comment #35 from Joonas Kylmälä <joonas.kylm...@helsinki.fi> --- Created attachment 94620 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=94620&action=edit Bug 23843: Add mapping to Koha::Account::Line This patch adds a to_api_mapping method to the class. This in effect enables calling ->to_api on the object. The mapping is borrowed from the API controller. It is not removed from the controller so we are able to verify (through the tests) that there is no behavior change. Once this is pushed we need to implement the counter-wise methods and clean the controllers. To test: 1. Run: $ kshell k$ prove t/db_dependent/api/v1/patrons_accounts.t => SUCCESS: Tests pass 2. Apply this patch 3. Repeat (1) => SUCCESS: Tests still pass! 4. Sign off :-D Signed-off-by: Martin Renvoize <martin.renvo...@ptfs-europe.com> Signed-off-by: Joonas Kylmälä <joonas.kylm...@helsinki.fi> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/