FORMfields, the premiere web framework
Login
Support Home | Knowledge Base | Documentation | Forums | Contact Us
Info
FORMfields & FORMgen :: Bug Fixes

Bug in Display Value of MonthField

(1360 views. Last Updated: 2010-06-07 6:17 PM)

There is a bug in the MonthField that causes the display value to be set one month ahead. To correct this, edit FORMfields/src/fields/MonthField.php and replace the following line in the getDisplayValue() function:
return $this->ENUM_MONTH_NAMES[$this->getValue() + 0];
with:
return $this->ENUM_MONTH_NAMES[$this->getValue() - 1];
Info
Support | Earn Money
Copyright © 2005-2019 Brain Book Software LLC.
Built with FORMfields, the premiere web framework.