Add basket to bucket continued
authorBill Erickson <berickxx@gmail.com>
Thu, 15 Nov 2018 22:19:42 +0000 (17:19 -0500)
committerBill Erickson <berickxx@gmail.com>
Fri, 30 Nov 2018 16:34:20 +0000 (11:34 -0500)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/staff/catalog/basket-actions.component.html
Open-ILS/src/eg2/src/app/staff/share/buckets/record-bucket-dialog.component.html
Open-ILS/src/perlmods/lib/OpenILS/Application/Actor/Container.pm

index ca47c66..f3547a1 100644 (file)
@@ -22,7 +22,7 @@
       <option value="print"  [disabled]="true" i18n>Print Title Details</option>
       <option value="email"  [disabled]="true" i18n>Email Title Details</option>
       <option value="bucket" i18n>Add Basket to Bucket</option>
-      <option value="clear"  [disabled]="true" i18n>Clear Basket</option>
+      <option value="clear"  i18n>Clear Basket</option>
     </select>
   </div>
 </div>
index 550dac9..9444865 100644 (file)
@@ -2,7 +2,7 @@
   <div class="modal-header bg-info">
     <h4 class="modal-title">
         <span *ngIf="recIds.length == 1" i18n>
-            Add To Record #{{recIds[0]}} to Bucket</span>
+            Add Record #{{recIds[0]}} to Bucket</span>
         <span *ngIf="recIds.length != 1" i18n>
             Add {{recIds.length}} Record(s) to Bucket</span>
     </h4>
index 0af60f2..abeeea2 100644 (file)
@@ -350,11 +350,8 @@ sub item_create {
     return $e->die_event unless $e->checkauth;
     my $items = (ref $item eq 'ARRAY') ? $item : [$item];
 
-    # Elect an item to be the source of the bucket we will
-    # add all items to.
-    $item = $items->[0];
-
-    my ( $bucket, $evt ) = $apputils->fetch_container_e($e, $item->bucket, $class);
+    my ( $bucket, $evt ) = 
+        $apputils->fetch_container_e($e, $items->[0]->bucket, $class);
     return $evt if $evt;
 
     if( $bucket->owner ne $e->requestor->id ) {