LP 1473054: No-op Checkin Should Not Float a Floating Copy. user/dyrcona/lp1473054_no-op_does_not_float
authorJason Stephenson <jason@sigio.com>
Tue, 22 Nov 2016 19:53:07 +0000 (14:53 -0500)
committerJason Stephenson <jason@sigio.com>
Tue, 22 Nov 2016 19:55:54 +0000 (14:55 -0500)
Prior to this patch, a no-op checkin would not check if a copy should
float using the evergreen.can_float() function.  It would simply float
the copy to the org_unit where the checkin happened if the copy had a
float value set.

This commit changes the behavior of no-op checkin to never float a
floating copy, thus considering floating as another operation that
should be skipped on a no-op checkin.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm

index 8daab0c..0460760 100644 (file)
@@ -2604,12 +2604,6 @@ sub do_checkin {
                 }
             }
         }
-    } else { # no-op checkin
-        if ($U->is_true( $self->copy->floating )) { # XXX floating items still stick where they are even with no-op checkin?
-            $self->checkin_changed(1);
-            $self->copy->circ_lib( $self->circ_lib );
-            $self->update_copy;
-        }
     }
 
     if($self->claims_never_checked_out and