As far as I have ever known, you may be ticketed for open container if you have an open 12 or 6 pack in the car. I agree it is bullshit.
Your best bet, if you would really like to know, is to ask a police officer.
I also believe that if it is in the trunk, he should not have received a ticket. Once again, I am not 100%, but I believe this is the case.