summaryrefslogtreecommitdiff
path: root/FS/FS/agent.pm
diff options
context:
space:
mode:
authorivan <ivan>2004-07-01 12:45:04 +0000
committerivan <ivan>2004-07-01 12:45:04 +0000
commit1239c0a9987e36f2031cf56dbbe99a7ce5fd67bc (patch)
treedcba9459e49b241a09375d9aadaef0d5b0acca0f /FS/FS/agent.pm
parent6e263ad06d202a6221bd2d12b406dce67914be24 (diff)
fix silly bug editing agents
Diffstat (limited to 'FS/FS/agent.pm')
-rw-r--r--FS/FS/agent.pm2
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('');