Bug 13618: (follow-up) Escape HTML chars in holds.js

For biblio level holds we got:
TypeError: oObj.itemcallnumber is undefined

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2018-08-13 15:17:31 -03:00 committed by Nick Clemens
parent 8d61035e85
commit 726a61ac65
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ $(document).ready(function() {
},
{
"mDataProp": function( oObj ) {
return oObj.itemcallnumber.escapeHtml() || "";
return oObj.itemcallnumber && oObj.itemcallnumber.escapeHtml() || "";
}
},
{