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

Bug in Display Value of MonthField

(1399 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];
return $this->ENUM_MONTH_NAMES[$this->getValue() - 1];
Support | Earn Money
Copyright © 2005-2020 Brain Book Software LLC.
Built with FORMfields, the premiere web framework.