An action for the foreclosure of a mortgage upon which there shall be due any interest or any installment of the principal and there shall be other installments to become due shall be dismissed upon the defendant's bringing into court, before judgment, the principal and interest due, with the costs. If after judgment is entered in such case the defendant shall bring into court the principal and interest due, with the costs, proceedings on the judgment shall be stayed; but the court may enforce the judgment by a further order, upon a subsequent default in the payment of any installment of the principal, or of any interest thereafter to grow due.
Wis. Stat. § 846.05