Happy Endings - Season 2 - Eps 7: The Code War
When Max's high school girlfriend Angie, the girl he dated before he realized he was gay, returns to town, Penny (who was Max's girlfriend in college) starts to feel jealous. Meanwhile, Alex starts to develop an unusual crush on Max. When Dave starts dating Angie, Max becomes angry and declares a "code war". Jane finds out that Brad has a "work wife", so she sets out to obtain a "work husband".
About Happy Endings

Title: Happy Endings
First Air Date: 2011-04-13
Last Air Date: 2013-05-03
Status: Canceled
Rating: 6.995/10 (from 186 votes)
Language: EN
Seasons: 4
Total Episodes: 57
Network: ABC
Genres: Comedy, Drama
Production Companies: ABC Studios, Sony Pictures Television
Synopsis
A fresh and funny take on modern friendship and what one urban family will do to stay friends after the perfect couple who brought them all together break up on their wedding day. The failed wedding forces them all to question their life choices. Then there are Alex and Dave themselves, who strike a truce and must learn to live with the changes their breakup has brought.
Cast

Eliza Coupe
Jane Kerkovich-Williams

Elisha Cuthbert
Alex Kerkovich

Zachary Knighton
Dave Rose

Adam Pally
Max Blum

Damon Wayans Jr.
Brad Williams

Casey Wilson
Penny Hartz