Plaintiffs, who are appellants, brought an action against one Logan for cancellation of a contract for the sale and conveyance of certain real estate. Maas was made a defendant, as claiming some interest in' the property. During the pendency of the action,- and at a time when service by publication on Logan as a nonresident was incomplete, but after Logan had acquired knowledge of the commencement of the action, and after personal service oni Maas, plaintiffs and defendants met and settled -their differences. In ‘the settlement plaintiff paid Logan $1.200, and in consideration thereof received a quitclaim deed from Logan in release of all claims or interest under the contract. The settlement was consummated on or about the 24th of March, 1916, and plaintiff directed their attorneys to -dismiss the action. On April 1, 19x6, plaintiffs’ .attorneys1 presented to- the trial- court an application, reciting- the settlement and its terms, and that no appearance or answer had been made in the action, and asked a dismissal of the action pursuant to- the terms of settlement, which was granted on that date. On March 31st, the clay preceding the entry of this order. Anders-on, who is respondent here, served a notice and motion for leave to intervene as a defendant in the action with his complaint in intervention, which alleged that on March 17, 1916, the -defendant Logan 'had assigned and transferred' to him all her rights under the real estate contract; that he had tendered to plaintiffs the money due them, and demanded a -deed according- to- the terms- of the contract, and upon refusal thereof .bad deposited the money in a hank of good repute and given plaintiffs' notice thereof. On- April- 10th, the return day of the notice -of motion for intervention, the plaintiffs mot appearing, the trial court, upon application- of respondent as intervener, issued an order to -show -cause, reciting the - proceedings -dismissing the actlion, and that plaintiffs’ attorneys had not revealed to the court 'that notice and complaint in -intervention had been served on them prior to the application for an-cl -dismissal of the action, and requiring plaintiffs’ attorn-evs to show cause why the order of dismissal should not be vacated and intervention all-o'w-ed. The -order to show cause was served on plaintiffs' attorneys, and on the return day-they appeared and objected to the jurisdiction *34of the 'court, on the ground! that, the action having been dismissed, they were not attorneys for plaintiffs when the order to show cause was served, and that such service gave the court .no personal jurisdiction over plaintiffs. This objection being overruled, plaintiffs in opposition to the order to show cause, presented affidavits' disclosing the facts relating to the settlement and dismissal of the action, and also' to the effect that, at a time long prior to the settlement, defendant Uogan had entered into negotiation's with Anderson, the proposed intervener, for a ■transfer of ’her interest ini the contract, and had deposited a written assignment thereof, of date October 19, 1915, in a certain bank, to be delivered to hiim on1 payment of a certain sum; that immediately prior to consummating the settlement with plaintiffs she had communicated1 with the said bank, to ascertain whether said offer had be,en accepted and the assignment delivered, and, being advised in the negative, had informed the bank that the offer was withdrawn and directed it at once to return the assignment. Upon this showing, the trial court held that the order of dismissal had been inadvertently and wrongfully made, and entered an order vacating the order dismissing the action, and ■granting -the petition for intervention.
[1] The jurisdictional question is necessarily disposed of by an affirmance of the order vacating the dismissal of the action, •for the reas'om that the notice of motion and petition for intervention must then be held to have been served in ■ a pending action, and upon the attorneys of parties who had appeared therein. Code Civ. Proc. § 96. Did the trial court err in vacating the order dismissing the action? It is undisputed that all differences between rblie parties to the original action had been fully settled, and plaintiffs’ attorneys had been ¡directed to dismiss the .action before the notice of intervention was served. The parties then had the absolute right as between 'themselves, to settle and dismiss the action, unless' 'that right was suspended or lost by service of the notice .and petition in intervention, before the entry of the order or judgment of dismissal. But if the parties thereto had no legal right, as against the intervener, to- dismiss the action .after service ¡of the notice' and petition, the' fact that counsel who moved the dismissal and obtained the order did not advise the court of the service of the notice and petition in inter*35vention, would amount to a concealment from1 the court of a fact which necessarily would have controlled the action cif tha court -in granting or refusing the order and judgment of dismissal. The action was pending when the notice and petition of intervention were served upon plaintiffs’ c'ounsel. It is not denied that the petitioner was entitled to intervene upon the facts stated! in the petition, -and it is clear that the trial court would have granted the petition., had' there been no dismissal, as in fact it did do after vacation of the order. It follows that the trial court would not have granted plaintiffs’ application for a dismissal of the action, had it -been advised of the pendlency of tire intervention proceedings, and it is immaterial that plaintiffs’ counsel acted in good- faith and without any intent to deceive or mislead the court, believing they had an absolute legal! -right to dismiss.
[2] It is appellants’ contention that .plaintiffs had- -an absolute right to dismiss tíre action after notice of motion for leave to-intervene and service of complaint im -intervention in the pending action, for the reason that the judgment of dismissal does not prejudice rights of the intervener as disclosed ¡by his complaint. But-the right to intervene being conceded, and application therefor having been properly made while the action was pending, we are of the view that plaintiffs were in the same position with regard to the rights of the intervener as though an order had been made allowing intervention prior to the judgment of dismissal. The right to. litigate in a pending action1 a claim for affirmative relief set up in the complaint in intervention is conferred by the statute and' a judgment of dismissal -which deprives the intervener of that right is prejudicial, even though it-is not an adjudication of the matters alleged in the complaint. For this reason an assumption that the intervener was a -stranger to the action when judgment of dismissal was entered is erroneous. He had submitted himself and his cause of action to the jurisdiction of the court, and! was- entitled to' relief as though he were himself plaintiff in an action in .which former plaintiffs had voluntarily appeared as defendants. The question, then, is whether after 'the intervener has appeared,-in the action the right to intervene has been demanded in the mode'prescribed'by the statute, and'the complaint discloses a right in- the intervener tec intervene *36aniel 'to affirmative relief against the plaintiffs, the plaintiffs still have the absolute right to -put the intervener out of court by a dismissal of the action, merely because a judgment of 'dismissal is not an adjudication of the rights disclosed by the complaint in intervention.
[3] If such a view of plaintiffs’ rights is to be affirmed, we see no reason for holding that -a plaintiff may not dismiss his action in. every case, even though the 'defendant may have filed an answer disciosdng a valid counterclaim- or other right to affirmative relief. The contrary rule has been long established in this jurisdiction, and is founded upon the right 'of one who- has appeared in an action, and has pleaded facts which entitle him t-o affirmative relief against the plaintiff,- to remain -in court for the purpose of litigating his right to- such- relief. The application for dismissal was therefore inad'everltently granted, because of want 'of knowledge of a controlling fact, and the court was justified .in vacating the order.
The action of the trial court .is affirmed.