KMAIN-332 Staff can toggle circ history
authorBill Erickson <berickxx@gmail.com>
Wed, 29 Oct 2014 21:06:30 +0000 (17:06 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
    Cross-port: 1178b73

Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm

index c2b701a..5787224 100644 (file)
@@ -195,6 +195,13 @@ sub user_settings {
         my($e, $user_id, $setting) = @_;
         my $val = $e->search_actor_user_setting({usr => $user_id, name => $setting})->[0];
         return undef unless $val; # XXX this should really return undef, but needs testing
+        
+        # Allows this setting to load correctly in the staff client
+        if ($val->name eq 'history.circ.retention_start'){
+                       
+                       return 't';
+               }
+        
         return OpenSRF::Utils::JSON->JSON2perl($val->value);
     }