Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Forum bugs


Reply

5 Posts   1620 Views

Avatar
Andy

27 July 2007 at 10:26am 230 Posts

Hey all,

Some of you have noticed bugs in the forum - eg posts disappearing, or turning up in the wrong topic. If any of you have any idea how to reproduce these bugs, this would be super helpful in helping me fix them!

Thanks,
Andy

Avatar
Sam

28 July 2007 at 8:37am Administrator, 685 Posts

It's possible that it happens when two posts are added simultaneously - hence the rare occurrence of the issue.

In the NZCT branch there is a change to the ID generation in DataObject::write() - can you check to see if SS is running with this code?

The ID should *not* be generated with DB::getNextID() - instead, it inserts a blank record and passes that to the rest of the write code.

Avatar
xmedeko

29 July 2007 at 5:11pm (Last edited: 29 July 2007 5:12pm), Community Member, 94 Posts

Yeah, there's
[code php]
$this->record['ID'] = DB::getNextID($ancestry[0]);

in DataObject:write()

Can you post your patch here as well, pls?
Thx

Avatar
Andy

31 July 2007 at 10:37am 230 Posts

xmedeko, here is the patch.

Avatar
xmedeko

31 July 2007 at 3:42pm Community Member, 94 Posts

thanks, i've applied that.