[open-ils-commits] [GIT] Evergreen ILS branch rel_2_1 updated. e25b067cac5f47d1b1ada9eee114d915287fa2dc

Evergreen Git git at git.evergreen-ils.org
Tue Mar 20 13:27:58 EDT 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_2_1 has been updated
       via  e25b067cac5f47d1b1ada9eee114d915287fa2dc (commit)
      from  d9760ee099c7eb23ab7fa8ed7c3d75278fd18860 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit e25b067cac5f47d1b1ada9eee114d915287fa2dc
Author: Michael Peters <mrpeters at library.in.gov>
Date:   Fri Mar 16 13:56:57 2012 -0400

    LP#707167 Make open-ils.actor.usrname.exists not ignore deleted users
    
    Currently, open-ils.actor.usrname.exists filters out deleted users.  This
    results in a user recieving indication as to why a user update
    failed, when the reason is the username they're attempting to use
    is in use, but is "deleted" in the database.
    
    This branch makes open-ils.actor.usrname.exists look at deleted users
    since they still prevent re-use of the delted user's username.
    
    More information is in the original bug, https://bugs.launchpad.net/evergreen/+bug/707167.
    
    Signed-off-by: Michael Peters <mrpeters at library.in.gov>
    Signed-off-by: Mike Rylander <mrylander at gmail.com>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm
index 8b56e97..570d332 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm
@@ -2576,7 +2576,7 @@ sub usrname_exists {
 	my( $self, $conn, $auth, $usrname ) = @_;
 	my $e = new_editor(authtoken=>$auth);
 	return $e->event unless $e->checkauth;
-	my $a = $e->search_actor_user({usrname => $usrname, deleted=>'f'}, {idlist=>1});
+	my $a = $e->search_actor_user({usrname => $usrname}, {idlist=>1});
 	return $$a[0] if $a and @$a;
 	return undef;
 }

-----------------------------------------------------------------------

Summary of changes:
 .../src/perlmods/lib/OpenILS/Application/Actor.pm  |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list