No sale of real estate as provided for in article 28 of chapter 79 of the Kansas Statutes Annotated, and amendments thereto, shall be confirmed as provided for in K.S.A. 79-2804, and amendments thereto, until the purchaser at the sale files with the clerk of the court, an affidavit stating that the purchase of the real estate was not made, either directly or indirectly, for any person having the statutory right to redeem, other than any person or such person's assignee who held an interest in such real estate as mortgagee of record at the time of the sale.
K.S.A. 79-2804h