Was the man wrong in leaving a dog in a hot car?

Absolutely.

Was the officer wrong in leaving him handcuffed to a car?

I think so.

Like someone said, two wrongs don't make a right, I just hope that the dog is alright.