LP#2007073 Staff Should Only Select Manual Hold Cancel Causes
[evergreen-equinox.git] / Open-ILS / src / eg2 / src / app / staff / share / holds / cancel-dialog.component.ts
index 7927bce..1591bd6 100644 (file)
@@ -53,8 +53,10 @@ export class HoldCancelDialogComponent
         if (this.cancelReasons.length === 0) {
             this.pcrud.retrieveAll('ahrcc', {}, {atomic: true}).toPromise()
             .then(reasons => {
-                this.cancelReasons =
-                    reasons.map(r => ({id: r.id(), label: r.label()}));
+                this.cancelReasons = reasons
+                    // only display reasons for manually canceling holds
+                    .filter(r => 't' === r.manual())
+                    .map(r => ({id: r.id(), label: r.label()}));
             });
         }