Zeros in blank fields
Posted: 02 September 2010 03:49 AM   [ Ignore ]
Wallflower
Avatar
Rank
Total Posts:  30
Joined  2010-08-10

When I create entries, zeros are automatically put in each field that is not filled out, is there a way to have this not happen?

Profile
 
 
Posted: 02 September 2010 03:56 AM   [ Ignore ]   [ # 1 ]
Absolute Heartthrob!
Avatar
RankRankRankRankRank
Total Posts:  10369
Joined  2008-09-29

That shouldn’t happen. Sounds like a bug. I’ll let Rob know…. he’s out for the day though, so a fix isn’t going to happen immediately.

 Signature 
Profile
 
 
Posted: 02 September 2010 05:13 PM   [ Ignore ]   [ # 2 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

1) Are the fields present in the form, and just left blank? Or are they not in the form at all?
2) What kind of fieldtypes are getting that zero added?
3) Can we see your template code?

[ Edited: 02 September 2010 07:03 PM by Rob Sanchez ]
Profile
 
 
Posted: 02 September 2010 10:19 PM   [ Ignore ]   [ # 3 ]
Wallflower
Avatar
Rank
Total Posts:  30
Joined  2010-08-10

The fields are not present on the form. I trying to figure out my flow, but right now I have a start page with only 2 fields (out of 70 or so) to create the basic entr (title, url and first and last name) upon submittal they are taken to an edit form for that entry, which is then filled with zeros.

Here is the code for the first page where the entry is created:

{exp:safecracker 
                         channel
="case_evaluations"
                         
return="case-evaluation/form/ENTRY_ID" 
                         
id="begin"
                         
class="standard"
                        
safecracker_head="no"
                         
dynamic_title="[cef_last_name], [cef_first_name] Case Evaluation Form"
                         
                 
}
                 

                    
<h3><em>Let's Begin</em></h3>        

                    <ul>
                        <li>
                            <label class="desc required" for="first_name">Name</label>
                            <span>
                                <input name="cef_first_name" type="text" class="field text fn required" value="" size="8" tabindex="1" />
                                <label for="cef_first_name">First</label>
                            </span>
                            <span>
                                <input name="cef_last_name" type="text" class="field text ln required" value="" size="14" tabindex="2" />
                                <label for="cef_last_name">Last</label>
                            </span>
                        </li>
                    </ul>
                    <input class="submit-btn" type="submit" value="Begin" />

                 {/exp:safecracker} 
Profile
 
 
Posted: 02 September 2010 10:20 PM   [ Ignore ]   [ # 4 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

If you look at the entry in the CP, are the zeroes there? Or is it just in the SafeCracker form?

Profile
 
 
Posted: 02 September 2010 10:22 PM   [ Ignore ]   [ # 5 ]
Wallflower
Avatar
Rank
Total Posts:  30
Joined  2010-08-10

Sidenote, the id parameter isn’t working on this form, it’s still the default: publishForm
Catch anything?

Profile
 
 
Posted: 02 September 2010 10:23 PM   [ Ignore ]   [ # 6 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Oh yeah, there’s a bug and id isn’t working, i’ll fix that soon.

Profile
 
 
Posted: 02 September 2010 10:24 PM   [ Ignore ]   [ # 7 ]
Wallflower
Avatar
Rank
Total Posts:  30
Joined  2010-08-10

zeros in the CP too

Profile
 
 
Posted: 02 September 2010 10:32 PM   [ Ignore ]   [ # 8 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

OK, I’m seeing this bug too, now. I’ll have it fixed soon.

Profile
 
 
Posted: 03 September 2010 12:45 AM   [ Ignore ]   [ # 9 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Fixed this bug in today’s build: Version 1.0.0 Build 20100902

Profile
 
 
Posted: 03 September 2010 12:52 AM   [ Ignore ]   [ # 10 ]
Wallflower
Avatar
Rank
Total Posts:  30
Joined  2010-08-10

yep that fixed it. Thanks very much for the fast fix!

Profile