[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 Mar 1 11:24:40 CET 2017


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

Matthias Meusburger <matthias.meusburger at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #59548|0                           |1
        is obsolete|                            |

--- Comment #2 from Matthias Meusburger <matthias.meusburger at biblibre.com> ---
Created attachment 60750
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=60750&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

Signed-off-by: Matthias Meusburger <matthias.meusburger at biblibre.com>

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


More information about the Koha-bugs mailing list