projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c8ccfda
)
fix warning about adding a start date to actually check its *added*, RT#7352
author
ivan
<ivan>
Wed, 10 Mar 2010 06:47:51 +0000
(06:47 +0000)
committer
ivan
<ivan>
Wed, 10 Mar 2010 06:47:51 +0000
(06:47 +0000)
httemplate/edit/process/REAL_cust_pkg.cgi
patch
|
blob
|
history
diff --git
a/httemplate/edit/process/REAL_cust_pkg.cgi
b/httemplate/edit/process/REAL_cust_pkg.cgi
index
22aab44
..
b5796eb
100755
(executable)
--- a/
httemplate/edit/process/REAL_cust_pkg.cgi
+++ b/
httemplate/edit/process/REAL_cust_pkg.cgi
@@
-39,14
+39,15
@@
push @errors, '_setup_areyousure'
&& ! $cgi->param('setup_areyousure'); # and it wasn't confirmed
push @errors, '_start'
&& ! $cgi->param('setup_areyousure'); # and it wasn't confirmed
push @errors, '_start'
- if $hash{'start_date'} && $old->start_date # if a start date was added
- && $hash{'setup'}; # but there's a setup date
+ if $hash{'start_date'} &&
!
$old->start_date # if a start date was added
+ && $hash{'setup'};
# but there's a setup date
my $new;
my $error;
if ( @errors ) {
$error = join(',', @errors);
} else {
my $new;
my $error;
if ( @errors ) {
$error = join(',', @errors);
} else {
+ warn join(',',%hash);
$new = new FS::cust_pkg \%hash;
$error = $new->replace($old);
}
$new = new FS::cust_pkg \%hash;
$error = $new->replace($old);
}