If the defendant or other person representing the defendant, at any time before judgment, executes a written undertaking to the plaintiff with sufficient surety, to be approved by the court, clerk, or sheriff, to the effect that the defendant will:
the attachment shall be discharged and restitution made of any property taken under the attachment or the proceeds of the property.
IC 34-25-2-16
Pre-1998 Recodification Citation: 34-1-11-17.