(a) Whenever an objection is made by a defendant in any action cognizable before a justice of the peace or a municipal court, instituted by summons or warrant, or in an action by an attachment, an action for the recovery of personal property, an action by provisional remedy, or in any criminal action or proceeding, that the action was brought before a justice of the peace or a municipal court wherein the venue is improper under the laws of the State of Arkansas, the court shall immediately hear proof on the question. If it is established by proof that the venue is improper, then all further proceedings shall be discontinued and the justice of the peace or clerk of the municipal court shall transmit to a justice of the peace or municipal court wherein the venue is proper all the original papers in the case, including the bail bond, if there is any.
(b) If the defendant is in custody, he shall be taken and delivered before the justice of the peace or the municipal court, and the bail, if any, shall be liable for the appearance of the defendant in the court to which the papers are transmitted.
(c) The court to which the papers are transmitted shall proceed to try the action in all respects as if the action had been originally brought to the court.