Go to file
Joonas Kylmälä 8df5f362ac 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 089b857586)

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

Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
2020-09-15 23:42:39 +12:00
C4
…
Koha
…
OpenILS
…
acqui
…
admin
…
api/v1 Bug 26271: Add null to the list of accepted account_line data types 2020-09-15 23:42:39 +12:00
authorities
…
basket
…
catalogue
…
cataloguing
…
circ
…
clubs
…
course_reserves
…
debian
…
docs
…
errors
…
etc
…
ill
…
installer
…
koha-tmpl Bug 26313: (follow-up) Fix OPAC and "Show volumes" links 2020-09-15 23:40:37 +12:00
labels
…
members
…
misc
…
offline_circ
…
opac
…
patron_lists
…
patroncards
…
plugins
…
reports
…
reserve
…
reviews
…
rotating_collections
…
serials
…
services
…
skel
…
suggestion
…
svc
…
t Bug 26271: Add failing test to reveal issue with patrons API endpoint 2020-09-15 23:42:16 +12:00
tags
…
tmp/modified_authorities
…
tools
…
virtualshelves
…
xt
…
.editorconfig
…
.eslintrc.json
…
.gitignore
…
.htaccess
…
.mailmap
…
.scss-lint.yml
…
INSTALL
…
Koha.pm
…
LICENSE
…
MANIFEST.SKIP
…
Makefile.PL
…
README
…
README.md
…
README.robots
…
about.pl
…
changelanguage.pl
…
fix-perl-path.PL
…
gulpfile.js
…
help.pl
…
koha_perl_deps.pl
…
kohaversion.pl
…
mainpage.pl
…
package.json
…
rewrite-config.PL
…
yarn.lock
…

README.md

Koha is a free software integrated library system (ILS).

Koha is distributed under the GNU GPL version 3 or later.

Note: This is a synced mirror of the official Koha repo.

Note: Koha does not accept pull requests from git hosting sites.

Note: This project has its own bug tracker, to report a bug or submit a patch visit http://bugs.koha-community.org.

For guidelines on submitting patches for Koha please visit https://wiki.koha-community.org/wiki/SubmitingAPatch

The developers handbook can be found at https://wiki.koha-community.org/wiki/Developer_handbook

http://koha-community.org/

Koha Logo