(k) No records shall be destroyed pursuant to subdivision (a), (b), (c), (d), or (e) if the arrestee or a codefendant has filed a civil action against the peace officers or law enforcement jurisdiction which made the arrest or instituted the prosecution and if the agency which is the custodian of the records has received a certified copy of the complaint in the civil action, until the civil action has been resolved. Any records sealed pursuant to this section by the court in the civil actions, upon a showing of good cause, may be opened and submitted into evidence. The records shall be confidential and shall be available for inspection only by the court, jury, parties, counsel for the parties, and any other person authorized by the court.
Immediately following the final resolution of the civil action, records subject to subdivision (a), (b), (c), (d), or (e) shall be sealed and destroyed pursuant to subdivision (a), (b), (c), (d), or (e).