LP1579144: Make client_location_code a hard switch, and default to original behavior
authorMike Rylander <mrylander@gmail.com>
Tue, 13 Sep 2016 21:02:44 +0000 (17:02 -0400)
committerMike Rylander <mrylander@gmail.com>
Tue, 13 Sep 2016 21:02:44 +0000 (17:02 -0400)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Sip/MsgType.pm

index 29751f8..aa894d2 100644 (file)
@@ -866,7 +866,8 @@ sub handle_login {
         )) {
             $sc_loc ||= $server->{config}->{accounts}->{$uid}->{location_code};
         } else {
-            $sc_loc = $server->{config}->{accounts}->{$uid}->{location_code} || $sc_loc;
+            # Only use config file value
+            $sc_loc = $server->{config}->{accounts}->{$uid}->{location_code};
         }
         _load_ils_handler($server, $uid, $sc_loc);
     }