Andy Griffith Show, The - Barney's Missing Badge
During a bad downpour Barney and Andy go to retrieve 11 dogs Barney had dropped in a field. When the come back you'll see Barney has lost his badge. Once the inspector leaves and the next scene starts Barney's badge appears again.
Episode 3x30 - Dogs, Dogs, Dogs