projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
disable fcc 477 deployment zones, RT#85668
[freeside.git]
/
FS
/
FS
/
deploy_zone.pm
diff --git
a/FS/FS/deploy_zone.pm
b/FS/FS/deploy_zone.pm
index
306b4fb
..
723b491
100644
(file)
--- a/
FS/FS/deploy_zone.pm
+++ b/
FS/FS/deploy_zone.pm
@@
-187,8
+187,15
@@
returns the error, otherwise returns false.
=cut
=cut
-# the replace method can be inherited from FS::Record
+sub replace {
+ my $self = shift;
+ my $old = shift || $self->replace_old;
+
+ $self->expire_date(time)
+ if $self->disabled eq 'Y' && ! $old->disabled && ! $self->expire_date;
+ $self->SUPER::replace($old, @_);
+}
=item check
Checks all fields to make sure this is a valid zone record. If there is
=item check
Checks all fields to make sure this is a valid zone record. If there is