From 1239c0a9987e36f2031cf56dbbe99a7ce5fd67bc Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 1 Jul 2004 12:45:04 +0000 Subject: [PATCH] fix silly bug editing agents --- FS/FS/agent.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FS/FS/agent.pm b/FS/FS/agent.pm index 7c69dfbf2..a9e41a666 100644 --- a/FS/FS/agent.pm +++ b/FS/FS/agent.pm @@ -127,7 +127,7 @@ sub check { if ( length($self->username) ) { my $conflict = qsearchs('agent', { 'username' => $self->username } ); return 'duplicate agent username (with '. $conflict->agent. ')' - if $conflict; + if $conflict && $conflict->agentnum != $self->agentnum; $error = $self->ut_text('password'); # ut_text... arbitrary choice } else { $self->_password(''); -- 2.11.0