The surety who pays the principal obligation is subrogated by operation of law to the rights of the creditor.
Acts 1987, No. 409, §1, eff. Jan. 1, 1988.