I'll need 2 fields for the MatchStatus. One for team 1, and the other for team 2.
I just realized this when I was making the list of pending matches.
Ok, I just realized the same thing with the match maps, and the dates. What if... Yeah big if. But what if the match is made outside the challenge us section, but manually inserted by the administration.
In that case both teams need to handshake along with the whole thing.
the same thing is with the tournament. since a tournament is most often defined by a set of rules of engagment (at least I can remember this from a BF1942/BF2 tourneys we did).
The ladder however (outside a tourney) is often being handled by the teams themselves (thus the whole challenge us has an impact). And in that case the team that submits the challenge will most obvious accept the maps they selected (hell.. why else select maps that you would suck with right?!)
Anyways, I just modified the script a bit so the dates / maps are now fixed. Also, I noticed earlier on that team2 was never filled. I made a type there. And another thing I need to fix over here is the dynamic Ajax system I inserted. It needs to update when I pressed save.
At least all the data is stored now. I am gonna work on a view page so I can get the handshake system into play.
Geen opmerkingen:
Een reactie posten