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

--- Comment #22 from Emmi Takkinen <[email protected]> ---
Created attachment 182423
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=182423&action=edit
Bug 32266: (follow-up) Handle null basket.authorizer gracefully

This patch makes the JS code handle the situation of
`aqbasket.authorisedby` being NULL.

I was only able to reproduce this by manually touching the DB, but
existing data might have this situation.

To test:
1. Have a few late orders
2. Pick a basket id
3. Run:
   $ ktd --shell
  k$ koha-mysql kohadev
   > UPDATE aqbasket SET authorisedby=NULL WHERE basketno=2;
   (in this case 2 was my chosen basket).
4. Visit the late orders page
=> FAIL: The table doesn't render correclty, the browser inspector says
something about authorizer being null
5. Apply this patch
6. Repeat 4
=> SUCCESS: The table renders correctly, the 'Library' column has an
empty string for the affected rows
7. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <[email protected]>
Signed-off-by: Emmi Takkinen <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to