When using this otherwise nice module, I find that if the apartment number is left blank, it becomes a Zero ("0") after saving and returning to the node.
Those with simple street addresses are now at "123 Main Street #0"
I imagine that this is a simple fix to those skilled in the area?
Comments
Comment #1
rconstantine commentedOpps. I may have set the database to have a non-null default value. I'll change that.
Comment #2
rconstantine commentedFor a quick fix, you can change the database column to allow NULL values and to set NULL as the default value.
Comment #3
cayenne commentedThanks, I'll try that workaround.
Say, can I set the default state the same way?
Comment #4
rconstantine commentedYou can't. This would work only if the field could be left blank. I hadn't thought about allowing the admin to set defaults for each field, but that's an interesting idea. And it would be pretty simple. If I have time during my next round of bug fixes, I'll add that in.
But bug fixes come first, you know.
Comment #5
cayenne commentedHmmm. Database column already WAS able to set null, with default as null as well. Waaaah.
As long as one is looking at it, perhaps we might allow alpha in the field. I have friends in apartment 19-A, for example.
Comment #6
rconstantine commentedI'll do that. I really appreciate the feedback. Look for an update a week from yesterday.
Comment #7
cayenne commentedI have commented out the apartment code, just letting folks add the apt number to their street address. You might consider making the number a configuration option rather than an "always in".
Not only does this reduce screen real estate usage, but it creates more flexibility in letting people describe their address the way the POST OFFICE wants to see it.
I'd suggest cutting the element out entirely, but that may strand existing users. In any case, thank you for the module!
Comment #8
rconstantine commentedI don't think you're using the dev version are you? Anyway, I don't get the #0 showing up if I leave the field blank. Can you update to the latest and let me know if it's still there? Also, another update should be coming in the next day or two to fully fix the issues with Canadian addresses and establish a pattern for future support of other countries.
Comment #9
rconstantine commentedAh ha! I spoke too soon. It turns out that if the required field is checked then the problem exhibits itself. Thanks. I'll fix that too.
Comment #10
michelleJust changed the title back because "thank you" doesn't say much about the issue for people looking at the queue.
Michelle
Comment #11
rconstantine commentedI think I fixed it. Look for a new dev release later today.
Comment #12
rconstantine commentedForgot to change status...
Comment #13
(not verified) commented