*1104 Opinion
INTRODUCTION
Petitioners Shapell Industries, Inc. and Shapell Industries Escrow 1 challenge the respondent superior court’s order granting a motion for leave to file a second amended complaint adding a new plaintiff as an individual and as the representative plaintiff of an uncertified class. Shapell contends the trial court lacked subject matter jurisdiction to allow the second amended complaint to be filed to add a new plaintiff, real party in interest Allan Stark, because the original plaintiff, Steven J. Borecki, had voluntarily dismissed himself as a party to the action, after attempting to name Stark as a coplaintiff in a first amended complaint without first obtaining leave of court. According to Shapell, Borecki dismissed the entire action, thus divesting the trial court of subject matter jurisdiction. Shapell further contends that neither Stark nor Borecki had standing to seek leave to file a second amended complaint because the voluntary dismissal removed Borecki from the action and Stark was never properly made a party to the action.
We issued an order to show cause in this original proceeding. We now conclude that the order of dismissal pertained to Borecki alone, and that his dismissal did not divest the trial court of subject matter jurisdiction, such that it became incompetent to continue to hear the matter and permit the second amended complaint to be filed naming Stark as the representative plaintiff. The petition for extraordinary writ is denied.
FACTUAL AND PROCEDURAL BACKGROUND
Borecki filed a complaint in February 2004, alleging three causes of action on his own behalf as an individual as well as a class action on behalf of home buyers who purchased real property from Shapell Industries, Inc. and were charged for escrow services purportedly rendered by Shapell Industries Escrow. The first cause of action was for violation of Civil Code section 2995, 2 the second for violation of the unfair competition law (Bus. & Prof. Code, § 17200 et seq.), and the third for restitution.
*1105 In August 2004, Shapell’s demurrer to Borecki’s individual cause of action for violation of Civil Code section 2995 was sustained with leave to amend on statute of limitations grounds and for failure to state a cause of action against Shapell Industries Escrow, which is not a real estate developer. 3 Demurrer was overruled as to the second and third causes of action stated by Borecki as an individual. Shapell’s demurrer to the entire complaint on the basis of the class action allegations was sustained with leave to amend based on Borecki’s failure to adequately plead a community of interest regarding the law and facts among the class members, the court noting that Borecki had not cited authority permitting him to represent a class even though his own claim is barred by the statute of limitations.
Borecki filed a first amended complaint on August 25, 2004, naming Allan Stark (who purchased his home in June 2002) as an additional plaintiff, in an attempt to cure the class action allegations. In response, on September 28, 2004, Shapell filed a demurrer to the first amended complaint, along with a motion to strike Stark from the amended complaint on the ground that Borecki had not sought or obtained leave of court to add Stark as a plaintiff.
While the demurrer was pending for hearing, on October 15, 2004, Borecki filed a request for dismissal of the action as to himself. The request for dismissal and supporting declaration stated that the dismissal without prejudice was as to Borecki alone, that Borecki reserved his rights as “an absent class member,” and that Borecki understood that the action would continue to be litigated by Stark as the plaintiff.
The trial court granted the request for dismissal and entered an order dismissing Borecki, “without prejudice to his rights as an absent class member,” on October 27, 2004.
On January 6, 2005, the trial court granted Shapell’s motion to strike Stark from the first amended complaint, finding that Stark had not been effectively added as a plaintiff because leave of court had not been sought, in violation of Code of Civil Procedure section 473, and that such leave is required even where a plaintiff has been granted leave to amend a complaint upon the sustaining of a demurrer. The request to add a plaintiff must be made by way of a motion, application, or stipulation. In its minute order, the court stated: “The Court gives leave to defendant [sz'c] to file motion, application, and/or stipulation.” The demurrer was deemed to be moot.
*1106 On January 29, 2005, Borecki filed a motion seeking leave to file a second amended complaint adding Stark as a plaintiff. The motion named Borecki as the sole plaintiff in the action—despite the fact he had been dismissed from the action—but identified Stark as the moving party. Borecki argued that the entire action was not dismissed in October 2004 because Stark was already a party to the class action by virtue of his being an absent member of the proposed class. Borecki argued that case authority permitted substitution of a qualified representative class plaintiff for a plaintiff determined to be unqualified, such that Stark was permitted to be added as a plaintiff.
Shapell filed opposition on February 7, 2005, arguing that the dismissal of Borecki at the time when Stark had not properly been added as a plaintiff terminated the trial court’s subject matter jurisdiction over the entire action. As such, neither Borecki (who had voluntarily dismissed himself out), nor Stark, a nonparty, had standing to file the motion to amend. Shapell pointed out that the cases relied upon in the motion to amend as permitting substitution of representative plaintiffs all involved ongoing actions in which the original plaintiff had not dismissed the action before the substitution occurred.
Borecki filed a reply brief, again arguing that the entire action had not been dismissed. He contended that because the trial court had sustained Shapell’s demurrer to the first amended complaint with leave to amend, it had thus implicitly invited and/or authorized the addition of Stark as a successor plaintiff in a second amended complaint.
Hearing was held on the matter on February 18, 2005. The trial court granted leave to file the second amended complaint.
Shapell then filed its petition for writ of mandate on March 24, 2005, and requested a stay of the trial court proceedings. Preliminary opposition to the writ petition was filed on behalf of Stark on April 4, 2005, followed by Shapell’s reply to the preliminary opposition, filed April 14, 2005.
On June 10, 2005, this court issued an alternative writ and ordered the trial court proceedings stayed pending further order of this court.
Stark filed a return on July 8, 2005. Shapell filed a reply to the return on August 3, 2005. 4
*1107 DISCUSSION
I. Attempt to Amend Without Seeking Leave of Court Was a Nullity
Shapell’s first demurrer was sustained with leave to amend after Borecki essentially conceded that the three-year statute of limitations barred his individual cause of action under Civil Code section 2995. Shapell contends that Borecki’s attempt to add Stark as a named representative plaintiff or substitute Stark for Borecki in the first amended complaint was a nullity, since Borecki failed to specifically request leave of court to do so.
In support of this contention, Shapell cites authority to the effect that naming a new party in a complaint without obtaining prior leave of court is a nullity.
(Phoenix of Harford. Ins. Companies v. Colony Kitchens
(1976)
We agree that the proper course would have been for Borecki to seek leave of court to file the first amended complaint adding Stark as a plaintiff and substituting him for Borecki as the named representative plaintiff.
*1108 II. Voluntary Dismissal of Named Representative Plaintiff Does Not Effect a Dismissal of the Entire Action
Shapell further contends that after the ineffectual attempt to add Stark as a plaintiff, the trial court’s granting of Borecki’s request for dismissal resulted in dismissal of the entire action, and the divestment of subject matter jurisdiction, such that the trial court lacked jurisdiction thereafter to allow an amendment to the complaint. We disagree.
We note that the parties have not cited and our research has not found a case involving the unusual procedural scenario that occurred here. In order to decide the issue presented in this case, we must extrapolate from cases discussing the nature of class actions and the procedures and precepts that govern their maintenance, as well as cases that deal in general with voluntary dismissals and amendment of pleadings.
It is true that “[following entry of a dismissal of an action by a plaintiff under Code of Civil Procedure section 581, a ‘trial court is without jurisdiction to act further in the action [citations] except for the limited purpose of awarding costs and statutory attorney’s fees.’ ”
(Harris v. Billings
(1993)
However, Borecki did not request dismissal of the entire action. He specifically requested dismissal of the causes of action stated on behalf of himself as an individual, not of the entire action. His reasons for seeking dismissal were purportedly personal, including the fact he had moved out of state, and were not based on the merits or an acknowledgement that he could not amend the complaint to cure the defects in his cause of action for violation of Civil Code section 2995. The order of dismissal itself stated that dismissal was as to Borecki, “without prejudice to his rights as an absent class member.” Granted, his dismissing himself as an individual party to the action meant that there was no named representative plaintiff of the putative class. But in our view the putative class remained extant, awaiting proper amendment of the complaint to add a new representative plaintiff. A dismissal by only some of the plaintiffs means the court is not divested of subject matter jurisdiction and the suit continues.
(Casa de Valley View Owner’s Assn. v. Stevenson, supra,
Shapell takes issue, however, with the notion that the unnamed putative class members, including Stark, could be treated as parties in the absence of a named plaintiff, such that a controversy remained over which the trial court could exercise subject matter jurisdiction.
The motion to amend to add Stark as the representative plaintiff cited authority for the proposition that absent members of a proposed class may be parties for some purposes, but for other purposes, e.g., payment of defense fees and costs if defendant prevails, they are not. (See
Earley
v.
Superior Court
(2000)
Stark also cites cases authorizing substitution of a qualified representative plaintiff for an existing unqualified representative plaintiff. (See
La Sala v. American Sav. & Loan Assn.
(1971)
Discussion of
La Sala, supra,
The court continued: “Even if the named plaintiff receives all the benefits that he seeks in the complaint, such success does not divest him of the duty to continue the action for the benefit of others similarly situated.”
(La Sala, supra,
Similarly illustrative of the protection afforded absent class members, California Rules of Court, rule 1860(a), provides; “A dismissal of an entire class action, or of any party or cause of action in a class action, requires court approval. Requests for dismissal must be accompanied by an affidavit or a declaration setting forth the facts on which the party relies. The affidavit or declaration must clearly state whether consideration, direct or indirect, is being given for the dismissal and must describe the consideration in detail.” The rule is applicable to all class actions “until such time as the court finds the action is not maintainable as a class action or revokes a prior certification of the class.” (Cal. Rules of Court, rule 1850(a).)
Here, Borecki sought court approval of his dismissal, and it was given, but approval was not given by the court to dismiss the entire action. Indeed, such approval would have constituted an abuse of discretion where the court had not found that the complaint failed to properly allege a community of interest among the proposed class members, although Shapell had demurred on that basis. The question remains, however, whether the dismissal of Borecki, leaving no named representative plaintiff in place, resulted in the trial court losing subject matter jurisdiction over the matter. As previously stated, there do not appear to be any published cases addressing this specific issue under the circumstances present here.
“Generally, subject matter jurisdiction is the court’s power to hear and resolve a particular dispute or cause of action .... [Citations.]”
*1111
(Donaldson v. National Marine, Inc.
(2005)
Nor do we find that Stark lacked standing to seek to amend the complaint to add him as the representative plaintiff. “Standing is typically treated as a threshold issue, in that without it no justiciable controversy exists. ‘As a general principle, standing to invoke the judicial process requires an actual justiciable controversy as to which the complainant has a redi interest in the ultimate adjudication because he or she has either suffered or is about to suffer an injury . . . .’
(Holmes v. California Nat. Guard
(2001)
Stark was a party interested in the action, by virtue of his membership in the uncertified class, at the time Borecki dismissed himself out, rendering Borecki’s dismissal only a partial one. Although Stark was ineffectually named as an additional plaintiff because leave of court had not been obtained, it appears he should ultimately come within the class if and when it is certified, and as such he was a party to the action in a sense sufficient to perpetuate the action when the original representative plaintiff dismissed himself out, as were the other absent class members.
*1112
The trial court did not err in permitting Stark to amend the complaint, where Stark came forward promptly as the proposed representative plaintiff, and where no attempt was made to state a new cause of action against Shapell, but rather the intent was to substitute an unsuitable representative plaintiff for an apparently suitable one. (See generally
Klopstock v. Superior Court, supra,
DISPOSITION
The petition for writ of mandate or other extraordinary relief is denied. The alternative writ, having served its purpose, is discharged, and the temporary stay order is lifted upon finality of this decision. Real party in interest shall have his costs.
Epstein, P. J., and Hastings, J., concurred.
A petition for a rehearing was denied October 18, 2005, and the opinion was modified to read as printed above. Petitioners’ petition for review by the Supreme Court was denied November 3, 2005.
Notes
Shapell Industries Escrow is a division of Shapell Industries, Inc. Both entities are named in the complaint. The petitioners will be referred to herein collectively as “Shapell,” except where specific reference to one or the other is required.
Civil Code section 2995 provides in part: “No real estate developer shall require as a condition precedent to the transfer of real property containing a single family residential dwelling that escrow services effectuating such transfer shall be provided by an escrow entity in which the real estate developer has a financial interest.”
The applicable statute of limitations for Civil Code section 2995 is three years (Code Civ. Proc., § 338 [nonpenal statutory violations]); Borecki purchased his home in February 2000 and filed the complaint in February 2004.
Petitioners notified us for the first time by letter dated September 30, 2005, and filed on October 3, 2005, that on July 22, 2005, the respondent trial court vacated its order of February 18, 2005, thus complying with the alternative writ issued by this court on June 10, 2005. Petitioners’ lengthy delay in notifying this court of that significant development was in direct contravention of the portion of the alternative writ ordering that “In the event that respondent *1107 complies with alternative (a) of this writ at any time prior to September 15, 2005, petitioner shall immediately so advise this court by letter and file a certified copy of the order constituting such compliance as soon as one can be obtained.” (Italics added.)
We strongly caution petitioners against engaging in such conduct in the future, which would justify an award of sanctions against them were we inclined to impose them.
Ordinarily, we would dismiss a petition as moot if the trial court complies with the terms of the alternative writ. However, when a pending case involves a question of public interest that is likely to recur between the parties or others, “the court may exercise an inherent discretion to resolve that issue even though an event occurring during its pendency would normally render the matter moot.”
(In re William M.
(1970)
Code of Civil Procedure section 473 provides in relevant part: “(a)(1) The court may, in furtherance of justice, and on any terms as may be proper, allow a party to amend any pleading or proceeding by adding or striking out the name of any party, or by correcting a mistake in the name of a party, or a mistake in any other respect. . . .”
Section 382 of the Code of Civil Procedure provides in relevant part that “when the question is one of a common or general interest, of many persons, or when the parties are numerous, and it is impracticable to bring them all before the court, one or more may sue or defend for the benefit of all.”
