Bug 36466: (follow-up) Use NULL for blank planned and published dates instead of today

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 2e3325a680)
Signed-off-by: Jacob O'Mara <Jacob.omara@openfifth.co.uk>
This commit is contained in:
Hammat Wele 2025-10-02 13:43:08 +00:00 committed by Jacob O'Mara
parent 6dc82ebb74
commit a79a7b4808
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -209,10 +209,10 @@ if ( $op and $op eq 'cud-serialchangestatus' ) {
my ( $plan_date, $pub_date );
if ( defined $planneddates[$i] && $planneddates[$i] ne 'XXX' ) {
$plan_date = $planneddates[$i] || $today;
$plan_date = $planneddates[$i] || undef;
}
if ( defined $publisheddates[$i] && $publisheddates[$i] ne 'XXX' ) {
$pub_date = $publisheddates[$i] || $today;
$pub_date = $publisheddates[$i] || undef;
}
if ( $serialids[$i] && $serialids[$i] eq 'NEW' ) {