I've found that having lid 0 in the table will cause problems when editing the owner. (the location getting "stuck" on the old one, any changes getting assigned a new lid each time, and so on...) There's several places where $location['lid'] is being tested instead of isset($location['lid']). Those either all need to get fixed, or lid 0 needs to be forbidden in the location table..
Calling db_next_id() during installation should bump lid to 1.
Thoughts?
Comments
Comment #1
geodaniel commentedThis sounds like an important thing to fix. Does it only affect the first ever location added?
Comment #2
WebWeasel commentedI've seen this issue also. I would be more interested in fixing the problem rather then the workaround. That could just lead to additional issues.
Comment #3
bdragon commentedThis would entail making sure no code ever does an if(!$lid) to check whether there was a location or not, since 0 casts to false...
Comment #4
drupalfan2 commentedCan you solve this problem now?
How long will it take to have a new version without error?
I have the same problem, look here:
http://drupal.org/node/159203
PLEASE repair this an tell me how long we all will have to wait for an error free version!!!
Thanx.
Comment #5
bdragon commentedThis is fixed in 3.x.