projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6e263ad
)
fix silly bug editing agents
author
ivan
<ivan>
Thu, 1 Jul 2004 12:45:04 +0000
(12:45 +0000)
committer
ivan
<ivan>
Thu, 1 Jul 2004 12:45:04 +0000
(12:45 +0000)
FS/FS/agent.pm
patch
|
blob
|
history
diff --git
a/FS/FS/agent.pm
b/FS/FS/agent.pm
index
7c69dfb
..
a9e41a6
100644
(file)
--- 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 ( 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('');
$error = $self->ut_text('password'); # ut_text... arbitrary choice
} else {
$self->_password('');