This isn't the only part that Phil Leeds played an imposter. In Night Court (1984)'s An Old Flame (1985), he played Arnold Koppelson, a court clerk who impersonates a judge and temporarily replaces Harry on the bench.
Bob Dishy's character name is listed as 'John Milford,' but he's always referred to as 'Richard Milford.'