From: Jane Sandberg Date: Thu, 6 Dec 2018 23:49:40 +0000 (-0800) Subject: LP1760599: Only show merge records action when multiple bucket records selected X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7114cd60a39a0929761eca9469ce2af8fc040f00;p=contrib%2FConifer.git LP1760599: Only show merge records action when multiple bucket records selected To test: 1) Create a bucket. 2) Select one record from your bucket. Right-click on your record or click on the Actions drop-down. 3) Note that "Merge Selected Records" is clickable. 4) Apply this commit. 5) Repeat steps 2-3. Note that "Merge Selected Records" is no longer clickable, unless you select two or more records. Signed-off-by: Jane Sandberg Signed-off-by: Rogan Hamby Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/templates/staff/cat/bucket/record/t_view.tt2 b/Open-ILS/src/templates/staff/cat/bucket/record/t_view.tt2 index 02aa7f5a5c..ab7461b973 100644 --- a/Open-ILS/src/templates/staff/cat/bucket/record/t_view.tt2 +++ b/Open-ILS/src/templates/staff/cat/bucket/record/t_view.tt2 @@ -23,6 +23,7 @@ label="[% l('Transfer Title Holds') %]"> 1) return false; + return true; + } + // fetch the bucket; on error show the not-allowed message if ($scope.bucketId) drawBucket()['catch'](function() { $scope.forbidden = true });