[Koha-bugs] [Bug 21835] Request ID is displayed as NaN
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Nov 14 17:14:17 CET 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21835
--- Comment #1 from Andrew Isherwood <andrew.isherwood at ptfs-europe.com> ---
Created attachment 82342
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=82342&action=edit
Bug 21835: Fix display of request ID
We now populate the id_prefix property in the API response. It turns out
that explicitly casting to a string wasn't necessary as JS does "the
right thing" when concatenating a string and an integer
Test plan:
- Before applying the patch view the ILL requests table
- TEST: Observe that the Request number column displays as NaN
- Apply the patch
- Refresh the page
- TEST: Observe that the request number now displays correctly
- Add the following block to your koha-conf.xml:
<branch>
<code>**The code of a branch that has an ILL request attached to
it**</code>
<prefix>YAY</prefix>
</branch>
- Refresh the page
- TEST: Observe the request made on the branch that you specified in the
config are now prefixed with "YAY-"
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list