diff options
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/agent.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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(''); |