From cf8cc47f6d0e6c20a1d14959f2811e3d74b35e1e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 29 Aug 2014 17:26:43 +0200 Subject: [PATCH] Bug 10900: 2 occurrences more Signed-off-by: Jonathan Druart Signed-off-by: Jonathan Druart Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi --- t/db_dependent/Members.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Members.t b/t/db_dependent/Members.t index 61ab9a245d..cf198190ac 100755 --- a/t/db_dependent/Members.t +++ b/t/db_dependent/Members.t @@ -65,7 +65,7 @@ my @USERENV = ( my $BRANCH_IDX = 5; C4::Context->_new_userenv ('DUMMY_SESSION_ID'); -C4::Context::set_userenv ( @USERENV ); +C4::Context->set_userenv ( @USERENV ); my $userenv = C4::Context->userenv or BAIL_OUT("No userenv"); @@ -172,7 +172,7 @@ ok (!_find_member($results), "Search (arrayref) for independent branches, differ or diag("Card $CARDNUMBER found in the resultset for independent branches: ".Dumper(C4::Context->preference($INDEPENDENT_BRANCHES_PREF), $results)); $USERENV[$BRANCH_IDX] = $BRANCHCODE; -C4::Context::set_userenv ( @USERENV ); +C4::Context->set_userenv ( @USERENV ); $results = Search("$CHANGED_FIRSTNAME $SURNAME", "surname"); ok (_find_member($results), "Full name Search (string) for independent branches, same branch")