diff --git a/Koha/Patron.pm b/Koha/Patron.pm index 84e7d2babb..cfa570e0f0 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -3405,7 +3405,7 @@ sub is_patron_inside_charge_limits { my $is_anonymous_patron= $patron->is_anonymous(); -Returns true if the patron the anonymous patron (AnonymousPatron) +Returns true if the patron is the anonymous patron (AnonymousPatron) =cut diff --git a/t/db_dependent/Koha/Patron.t b/t/db_dependent/Koha/Patron.t index 87e0f3c172..7cba994728 100755 --- a/t/db_dependent/Koha/Patron.t +++ b/t/db_dependent/Koha/Patron.t @@ -3115,6 +3115,6 @@ subtest 'is_anonymous' => sub { is( $patron->is_anonymous, 0, q{is_anonymous returns 0 if pref is not equal to patron's id} ); - $schema->storage->txn_begin; + $schema->storage->txn_rollback; - } +};