When an action is brought for the foreclosure of a mortgage on which there is due any interest, or any portion of the principal, and there are other portions to become due subsequently, the action shall be dismissed, upon the defendant bringing into court, at any time before the judgment of sale, the principal and interest due, with costs. If, after such judgment of sale, the defendant brings into court the principal and interest due, with costs, the action shall be stayed; but the court shall enter judgment of foreclosure and sale, to be enforced by a further order upon a subsequent default in the payment of any portion of the principal or of interest thereafter to become due.
Minn. Stat. § 581.07
(9640) RL s 4492