X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fagent.pm;h=a9e41a666347ee6fce1d2b10c83e88ac7b56f669;hb=e4ae5122522f2d45c68a38eaef337a82029f2fc1;hp=7c69dfbf2e9840accb0c932d274646ec86496ae1;hpb=3913f6d159b5b8110061690b7c97642c27abf7eb;p=freeside.git 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('');