[Koha-bugs] [Bug 17992] REST api: Cities controller should not use ->unblessed

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jan 25 13:48:19 CET 2017


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

--- Comment #1 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 59548
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59548&action=edit
Bug 17992: REST api: Remove the use of ->unblessed from Cities controller

As bug 17932 adds TO_JSON to Koha::Object(s), there's no need for using
it. Also, as this is a reference implementation for developers to copy
and paste it is sensible to make this change even when this is not
causing any bug.

To test:
- Apply the patch
- Run:
  $ sudo koha-shell kohadev
 k$ cd kohaclone
 k$ prove t/db_dependent/api/v1/cities.t
=> SUCCESS: Tests still pass!
- Sign off :-D

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


More information about the Koha-bugs mailing list