Closed JonTheNiceGuy closed 11 years ago
Please can you review this one @NotBobTheBuilder
I've found a bug in this - the only talk in one slot thinks it is clashing with a talk in the next slot in the same room, though the same isn't true in the other direction.
I'll debug and get back to you.
I haven't found the cause of the bug - but it looks like on line 227 of the Talk class we iterate through every talk to see if there's a clash - even those in a different slot, which aren't (as far as I can think) possible to clash with.
Perhaps it would be more sensible to only check for those in the same slot? Is there a $slot->getTalks method?
Hmmm, maybe Object_talk::brokerByColumn? Also, perhaps it's the for loop at line 222?
Also, the warnings don't show if you're not logged in - is this desired behaviour?
I assume it wouldn't matter too much since workers & admins would be logged in anyway
Damnit, this pulled back in the #116 fix too :(