@@ -, +, @@
---
koha-tmpl/intranet-tmpl/prog/js/holds.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/js/holds.js
+++ a/koha-tmpl/intranet-tmpl/prog/js/holds.js
@@ -315,12 +315,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();
},
--