Bug 28271: Preselect the current item lost value
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit f93d28e8c6)
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
This commit is contained in:
parent
3d0e4a9315
commit
8a73084a26
|
|
@ -149,7 +149,7 @@
|
|||
<label for="new_lost_status">New item lost value:</label>
|
||||
[% SET itemlost = AuthorisedValues.GetAuthValueDropbox('LOST') %]
|
||||
<select class="form-control" id="new_lost_status">
|
||||
<option value="0"></option>
|
||||
<option value="0">(Not lost)</option>
|
||||
[% FOREACH lost IN itemlost %]
|
||||
<option value="[% lost.authorised_value | html %]">[% lost.lib | html %]</option>
|
||||
[% END %]
|
||||
|
|
|
|||
|
|
@ -1033,7 +1033,7 @@ $(document).ready(function() {
|
|||
? '<li><a href="#" class="return-claim-tools-delete" data-return-claim-id="' + oObj.id + '"><i class="fa fa-trash"></i> ' + __("Delete") + '</a></li>'
|
||||
: "";
|
||||
let resolve_html = ! oObj.resolution
|
||||
? '<li><a href="#" class="return-claim-tools-resolve" data-return-claim-id="' + oObj.id + '"><i class="fa fa-check-square"></i> ' + __("Resolve") + '</a></li>'
|
||||
? '<li><a href="#" class="return-claim-tools-resolve" data-return-claim-id="' + oObj.id + '" data-current-lost-status="' + escape_str(oObj.itemlost) + '"><i class="fa fa-check-square"></i> ' + __("Resolve") + '</a></li>'
|
||||
: "";
|
||||
|
||||
return '<div class="btn-group">'
|
||||
|
|
@ -1188,8 +1188,10 @@ $(document).ready(function() {
|
|||
// Handle return claim resolution
|
||||
$('body').on('click', '.return-claim-tools-resolve', function() {
|
||||
let id = $(this).data('return-claim-id');
|
||||
let current_lost_status = $(this).data('current-lost-status');
|
||||
|
||||
$('#claims-returned-resolved-modal-id').val(id);
|
||||
$("#new_lost_status").val(current_lost_status);
|
||||
$('#claims-returned-resolved-modal').modal()
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -77,7 +77,8 @@ my $sql = qq{
|
|||
biblio.author,
|
||||
|
||||
items.enumchron,
|
||||
items.barcode
|
||||
items.barcode,
|
||||
items.itemlost
|
||||
FROM return_claims
|
||||
LEFT JOIN items USING ( itemnumber )
|
||||
LEFT JOIN biblio USING ( biblionumber )
|
||||
|
|
|
|||
Loading…
Reference in New Issue