From ca5d5fba3b0ee533f11ced8c501fdcd628a9f2f9 Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Thu, 6 Dec 2018 15:49:40 -0800 Subject: [PATCH] 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 --- Open-ILS/src/templates/staff/cat/bucket/record/t_view.tt2 | 1 + Open-ILS/web/js/ui/default/staff/cat/bucket/record/app.js | 6 ++++++ 2 files changed, 7 insertions(+) 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 }); -- 2.11.0