Bug 28854: (follow-up) Improve error for item not found
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
3642a22ca4
commit
08356151cb
|
|
@ -1789,6 +1789,8 @@ Note that permanent location is a code, and location may be an authval.
|
|||
} else {
|
||||
$('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Item '%s' belongs to another bundle").format(barcode)+'</div>');
|
||||
}
|
||||
} else if ( data.status === 404 ) {
|
||||
$('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Item '%s' not found").format(barcode)+'</div>');
|
||||
} else {
|
||||
$('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Check the logs for details")+'</div>');
|
||||
}
|
||||
|
|
@ -1856,6 +1858,8 @@ Note that permanent location is a code, and location may be an authval.
|
|||
} else {
|
||||
$('#removeResult').replaceWith('<div id="removeResult" class="alert alert-danger">'+_("Failure: Item '%s' belongs to another bundle").format(barcode)+'</div>');
|
||||
}
|
||||
} else if ( data.status === 404 ) {
|
||||
$('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Item '%s' not found").format(barcode)+'</div>');
|
||||
} else {
|
||||
$('#removeResult').replaceWith('<div id="removeResult" class="alert alert-danger">'+_("Failure: Check the logs for details")+'</div>');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue