RT#20687: Future package change [comment about bug fix]
authorJonathan Prykop <jonathan@freeside.biz>
Wed, 1 Jul 2015 03:49:28 +0000 (22:49 -0500)
committerJonathan Prykop <jonathan@freeside.biz>
Wed, 1 Jul 2015 03:49:28 +0000 (22:49 -0500)
FS/FS/cust_pkg.pm

index b97587c..950d348 100644 (file)
@@ -2442,6 +2442,7 @@ sub change_later {
 
         $error = $self->replace       ||
                  $err_or_pkg->replace ||
+                 #because change() might've edited existing scheduled change in place
                  (($err_or_pkg->pkgnum == $change_to->pkgnum) ? '' :
                   $change_to->cancel('no_delay_cancel' => 1) ||
                   $change_to->delete);