Fixing a bug in the userenv for Koha
authorChris Cormack <chrisc@catalyst.net.nz>
Tue, 12 Aug 2014 21:17:08 +0000 (09:17 +1200)
committerChris Cormack <chrisc@catalyst.net.nz>
Tue, 12 Aug 2014 21:17:08 +0000 (09:17 +1200)
lib/NCIP/ILS/Koha.pm

index 6538ff3..a33e37f 100644 (file)
@@ -62,11 +62,11 @@ sub userenv {
         'Test',
         $branch,    #branchcode need to set this properly
         'Auckland',
-        0,
+        1,
     );
 
     C4::Context->_new_userenv('DUMMY_SESSION_ID');
-    C4::Context->set_userenv(@USERENV);
+    C4::Context::set_userenv(@USERENV);
     return;
 }