Coupon end year issue

Coupon end date year is 2018, which does not show 2019.

Issue found in admin/includes/add_ccgvdc_application_top.php

Buggy code;

for ($i=2001;$i<2019;$i++){
$date_selector .= ‘<option value=”‘ . $i . ‘”‘;
if ($i==$year) $date_selector .= ‘selected’;
$date_selector .= ‘>’ . $i . ‘</option>’;
}

Fixed code;

for ($i=date(“Y”);$i<date(“Y”)+2;$i++){
$date_selector .= ‘<option value=”‘ . $i . ‘”‘;
if ($i==$year) $date_selector .= ‘selected’;
$date_selector .= ‘>’ . $i . ‘</option>’;
}

Leave a Reply

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close