formfields.com Forum Index formfields.com
FORMfields Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Bug When Using IntegerField With Confirmation Screen

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    formfields.com Forum Index -> FF 2.X - Bug Reports
View previous topic :: View next topic  
Author Message
formfields



Joined: 01 Aug 2005
Posts: 465

PostPosted: Fri Jan 26, 2007 7:05 pm    Post subject: Bug When Using IntegerField With Confirmation Screen Reply with quote

When using the Confirmation Screen option with an IntegerField, undesirable results occur when entering a 0. After confirming the data, the value of the IntegerField gets set to null instead of 0. You can fix this by editing FORMfields.php and replacing a line in the FormField::getParameter() function:
Replace:
Code:

if (array_key_exists($this->getName(), $_REQUEST) || $value) {

with:
Code:

if (array_key_exists($this->getName(), $_REQUEST) || $value != null) {
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    formfields.com Forum Index -> FF 2.X - Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group