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: Laura Escamilla <laura.escamilla@bywatersolutions.com>
This commit is contained in:
Hammat Wele 2025-10-02 13:43:08 +00:00 committed by Laura Escamilla
parent 0a8c308b2c
commit 9cefb5f4ca
No known key found for this signature in database
GPG Key ID: 6B1D9CA1AF817BC3
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' ) {