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