From d8f4c896fbbc2b46d5c8a13bfebbe921a9e75e2d Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 11 Nov 2020 02:53:46 +0000 Subject: [PATCH] Bug 26988: (follow-up) Adjust code to use api field names Signed-off-by: Tomas Cohen Arazi Signed-off-by: Jonathan Druart (cherry picked from commit 4388d20fb12f77aa733498baa4a287e4fb7c6998) Signed-off-by: Andrew Fuerste-Henry --- koha-tmpl/intranet-tmpl/prog/js/holds.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/holds.js b/koha-tmpl/intranet-tmpl/prog/js/holds.js index 7ee5e2fc64..d720e54dbd 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/holds.js +++ b/koha-tmpl/intranet-tmpl/prog/js/holds.js @@ -308,12 +308,12 @@ $(document).ready(function() { success: function( data ){ var dropdown = ""; $.each(data, function(index,library) { - if( preselected == library.branchcode ){ + if( preselected == library.library_id ){ selected = ' selected="selected" '; } else { selected = ""; } - dropdown += ''; + dropdown += ''; }); - this_dropdown.html( dropdown); + this_dropdown.html(dropdown); this_dropdown.data("loaded",1); $(".loading_"+hold_id).hide(); }, -- 2.39.5