Thank you.Yes, that was The Mary Tyler Moore Show. Chuckles the Clown was dressed up like a peanut (IIRC) and was trampled by an elephant. Everyone thought it was funny, except Mary. Then, at the funeral, she gets a fit of the giggles as they talk about it, and is trying to hold them in. The Officiant (if that's the right word) told her to go ahead and laugh, as that is what Chuckles would have wanted. Then she bursts into tears.
I heard that they script was just a bit short, but they didn't need to worry: the characters were laughing so hard that that filled in the needed minute or two.