张冠李戴

zhāng guān lǐ dài

lit. to put Zhang's hat on Li's head

to attribute sth to the wrong person (idiom); to confuse one thing with another

zhāng

to open up

guān

hat

plum

dài

to put on or wear (glasses, hat, gloves etc)