]> git.koha-community.org Git - koha.git/commit
Bug 17992: REST api: Remove the use of ->unblessed from Cities controller
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 25 Jan 2017 12:35:42 +0000 (09:35 -0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 3 Mar 2017 16:57:40 +0000 (16:57 +0000)
commit1102109f9ccff4ce0b01f95ae16adb65a9806b26
tree51e69363dc858cfba14ddba510d0092fde745985
parentcddb4b1ef049204da9a0db169b6aa83c3a361eac
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

Signed-off-by: Matthias Meusburger <matthias.meusburger@biblibre.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha/REST/V1/Cities.pm