HOLLENHORST, Acting P. J.
Movant and appellant Olga Grasso was injured at her place of employment. Her employer was insured for workers' compensation coverage by plaintiff and respondent Zenith Insurance Company (Zenith). Zenith paid the loss and pursued a subrogation action against defendants and respondents PepsiCo, Inc. (PepsiCo)
On May 23, 2012, Grasso was injured on the job when she slipped and fell on liquid near the beverage dispensing machine. She received workers' compensation benefits that were paid by Zenith. On May 21, 2014, Zenith filed a subrogation claim (Zenith action) against Bunn and PepsiCo, the companies who designed, manufactured, and/or operated the beverage dispensing machine. Zenith claimed that PepsiCo performed maintenance on the subject beverage dispenser, that the machine was manufactured by Bunn, and that both PepsiCo and Bunn were responsible for Grasso's alleged injuries. Zenith sought damages for the medical expenses, earnings compensation and other benefits it paid to Grasso as a result of the accident. On May 29, 2014, Zenith served Grasso at her home in Texas with notice of the Zenith action pursuant to Labor Code section 3853. Bunn filed its answer on June 19, 2014. On June 20, 2014, Grasso retained attorney John Rosenberg to represent her.
Shortly after the Zenith action was filed, the parties reached a settlement. On June 27, 2014, one of the defendants filed a notice of settlement, serving all parties, including Grasso, with a copy.
On September 30, 2014, Grasso moved to set aside the dismissal so that she could intervene in the Zenith action. All parties to the Zenith action opposed the motion. A hearing was held on November 18, 2014, and the trial court denied Grasso's motion on the ground that it had no jurisdiction based on the holding in Roski v. Superior Court (1971) 17 Cal.App.3d 841 (Roski).
Grasso contends the trial court erred in denying her motion to set aside the dismissal on the basis of the discretionary provisions of Code of Civil Procedure section 473, subdivision (b). However, she argues that the issue "is not merely whether the trial court abused its discretion. Instead, it declined to exercise its discretion, finding that it had no jurisdiction. Whether a court has subject matter jurisdiction is a question of law that is reviewed de novo [citation]."
Code of Civil Procedure section 581, subdivision (b)(1), provides a party with the almost unlimited right to dismiss an action. (See O'Dell v. Freightliner Corp. (1992) 10 Cal.App.4th 645, 659 (O'Dell).) One primary exception under the statute applies when another party has filed a pleading seeking affirmative relief. Nonetheless, the voluntary dismissal of a lawsuit terminates the trial court's jurisdiction over the matter. (Ibid.) Here, at the time the parties filed their request to dismiss the entire action on July 14, 2014, Grasso had not yet intervened. As no pleading seeking affirmative relief was on file at the time, Grasso had no right to block the dismissal. (See Roski, supra, 17 Cal.App.3d at p. 845.)
Both Roski and O'Dell addressed issues similar to the one raised by Grasso, i.e., the right of a nonparty to set aside a dismissal in order to intervene. In Roski, after an injured employee received workers' compensation benefits, the employer filed suit against the alleged third party tortfeasor, settled, and filed a voluntary dismissal of the action. (Roski, supra, 17 Cal.App.3d at p. 843.) The employee sought to set aside the dismissal so that he could intervene in the action pursuant to Labor Code section 3853. (Roski, supra, at pp. 843-844.) The trial court granted the employee's motion to vacate and set aside the dismissal pursuant to Code of Civil Procedure section 473. (Roski, supra, at p. 843.) On appeal, the Roski court reversed. The court noted that the employee was entitled to intervene "so long as that action remained pending." (Id. at p. 844.) However, because that action had been dismissed, the court held that the trial court lacked jurisdiction to entertain the employee's motion. (Id. at p. 846.)
In O'Dell, an injured employee received workers' compensation benefits and brought an action against the alleged third party tortfeasor. (O'Dell, supra, 10 Cal.App.4th at p. 651.) The employee settled his case before trial and voluntarily dismissed the lawsuit. Thereafter, the employer sought to set aside the dismissal so that it could intervene. (Ibid.) Despite concluding that the employee had not fulfilled its statutory obligation under the Labor Code to notify the employer of the action or settlement (O'Dell, supra, at pp. 656-657) the appellate court reasoned that the dismissal precluded the employer's action against the third party defendant and that the employer "is therefore left to whatever remedies it might assert against [the employee] either by suit for breach of the duty to notify or as a credit against future compensation benefits it may have to pay [him]." (Id. at p. 662.)
The present situation is governed by the holdings in Roski and O'Dell. The fact that Grasso had filed an ex parte application seeking leave to intervene prior to the entry of the dismissal is irrelevant.
It also is irrelevant whether the statute of limitations on any claim Grasso may have asserted against PepsiCo or Bunn may have now passed, barring Grasso from filing a separate action for relief. The Labor Code was set up to "grant the employee and the employer the right to share in each other's judgment or settlement." (County of San Diego v. Sanfax Corp. (1977) 19 Cal.3d 862, 872.) However, it does not extend the statute of limitations for the employee or the employer. (Id. at p. 886 [the statutory scheme of the Labor Code does not extend the statute of limitations beyond that of the employee]; see also Fairmont Ins. Co. v. Frank (1996) 42 Cal.App.4th 457, 460 [an employee was prohibited from intervening in the subrogation action because he failed to diligently prosecute his own lawsuit, which was dismissed].)
The trial court did not err in denying Grasso's motion to set aside the dismissal.
The order is affirmed. Respondents shall recover costs on appeal.