Minn. Stat. § 518.155
Notwithstanding any law to the contrary, a court in which a proceeding for dissolution, legal separation, or child custody has been commenced shall not issue, revise, modify or amend any order, pursuant to sections 518.131, 518.165, 518.168, 518.17, 518.175 or 518.18, which affects the custody of a minor child or the visitation rights of a noncustodial parent unless the court has jurisdiction over the matter pursuant to the provisions of sections 518A.01 to 518A.25.