]> git.koha-community.org Git - koha.git/commit
Bug 26271: Add null to the list of accepted account_line data types
authorJoonas Kylmälä <joonas.kylmala@helsinki.fi>
Fri, 21 Aug 2020 13:23:38 +0000 (16:23 +0300)
committerAleisha Amohia <aleishaamohia@hotmail.com>
Tue, 15 Sep 2020 11:42:39 +0000 (23:42 +1200)
commit8df5f362acef1d04f8ecf03db1ef38fbb770b9aa
tree93f2627cf65dea5e6cb193f7a9631e0c5dae72f6
parentf28cfa768253d1a15ba9bbba9f19f5b5e51d41ad
Bug 26271: Add null to the list of accepted account_line data types

The database schema for accountlines table allows the
manager_id/user_id column to be NULL. If request to
/api/v1/patrons/<patron_id>/account returns such an accountline where
it is NULL we get 500 error as response. Adding NULL to allowed data
types fixes this issue.

To test:
 1) Run prove t/db_dependent/api/v1/patrons_accounts.t and notice it
    doesn't fail

Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 089b85758614260b70f43509ccdbc6285629a883)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 67aa733726b13f0437bb11b6cb5d18220caba757)

Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
api/v1/swagger/definitions/account_line.json