Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
1 registered (Dunny), 32 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 10/01/06
Posts: 75
Top Posters (30 Days)
Ruben 50
DennyP 24
Gizmo 23
Dunny 15
SteveS 13
AllenAyres 12
dbremer 10
SD 10
drkknght00 9
driv 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#184358 - 05/17/07 11:58 AM [FIXED for 7.2] Won't accept '0' for a required custom field when adjusting My Profile
Shane Offline
journeyman
Registered: 02/12/07
Posts: 85
When editing My Profile, and a user types the number 0 into a required custom field, submitting the form returns a UBB Error:

<fieldname>is a required field

For example:

# of petsis a required field

Note that there is also no space between the name of the field, and the word 'is'.


Edited by Rick (05/30/07 04:54 PM)
_________________________
RnJpZW5kc2hpcCB3aXRoIHRoZSB3b3JsZCBpcyBob3N0aWxpdH
kgdG93YXJkcyBHb2QuICBKYW1lcyA0OjQ=
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#184393 - 05/17/07 07:02 PM Re: Won't accept '0' for a required custom field when adjusting My Profile [Re: Shane]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
Which field are they marking with a 0?
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#184407 - 05/18/07 12:11 AM Re: Won't accept '0' for a required custom field when adjusting My Profile [Re: Gizmo]
Shane Offline
journeyman
Registered: 02/12/07
Posts: 85
The first custom field, which is set as required.
_________________________
RnJpZW5kc2hpcCB3aXRoIHRoZSB3b3JsZCBpcyBob3N0aWxpdH
kgdG93YXJkcyBHb2QuICBKYW1lcyA0OjQ=
Top
#184428 - 05/18/07 11:03 AM Re: Won't accept '0' for a required custom field when adjusting My Profile [Re: Shane]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
php treats 0 as basically empty/null. So when it's required and we check if it has a value, 0 is being treated as no value, so it thinks the field isn't filled in. I'll need to change some code to make it look for a value or 0 explicitly.
Top
#184450 - 05/18/07 07:57 PM Re: Won't accept '0' for a required custom field when adjusting My Profile [Re: Rick]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
Yeh thats what I had figured; with most things if you treat it as a varchar it'll allow a 0 though, eventhough it is a number which would generally be forced as an int; so it'd interesting that it still treats it as a 0 since i think those are treated as a varchar
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#185221 - 05/30/07 04:53 PM Re: Won't accept '0' for a required custom field when adjusting My Profile [Re: Gizmo]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Have this fixed for 7.2.
Top



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Forum Stats
10492 Members
36 Forums
33842 Topics
181709 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image