Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
<div class="col-md-8">
<select class="form-control" id="hold-cancel-reason"
ng-model="args.cancel_reason"
- ng-options="reason.label() for reason in args.cancel_reasons">
+ ng-options="reason.id() as reason.label() for reason in args.cancel_reasons">
</select>
</div>
</div>
egCore.net.request(
'open-ils.circ', 'open-ils.circ.hold.cancel',
egCore.auth.token(), hold_id,
- $scope.args.cancel_reason.id(),
+ $scope.args.cancel_reason,
$scope.args.note
).then(function(resp) {
if (evt = egCore.evt.parse(resp)) {