The Grand Ayatollah Shobairi Zanjani answered a question about attributing a narration from one Imam (AS) to another (AS) by mistake whilst fasting.
Question: If a person who is fasting, intentionally or unintentionally attributes a narration which is from Imam Sadeq (AS) to Imam Baqer (AS), can this harm his fasting?
The Grand Ayatollah Shobairi: No, there is no problem, but the act of one Imam must not be attributed to another intentionally.
Source: PERSIAN SHAFAQNA
source : Shafaqna