Kan. Stat. Ann. § 58-2514
The attornment of a tenant to a stranger shall be void, and shall not affect the possession of his or her landlord unless it be made with the consent of the landlord, or pursuant to a judgment at law or the order or decree of a court.
G.S. 1868, ch. 55, § 14; October 31; R.S. 1923, 67-514.