Family Law Questions? Ask a Family Lawyer Online.
Your new Boyfriend has the right to file for a restraining order due to the harassment and verbal threats. This will not effect your custody request at all since this has nothing to do with your boyfriend.
The only thing I see as a issue is you will have to make sure your boyfriend is not around your husband at all while the order is in effect. So he can not go with you to pick or drop the child off for visitation. Also keep in mind you will likely be required to pick the child up at all times since your husband can not go near the home you and your boyfriend reside in.
Adultery is not a reason in MD to decide on child custody but the fact is this can sway the judges mind. Most courts that have considered the issue recently have concluded that evidence of adultery is only relevant if it can be proven that the adultery has affected the children.