Opinion
Plaintiffs appeal from a judgment of dismissal of their first amended complaint for declaratory relief, after a demurrer was sustained without leave to amend. We reverse.
*107 Plaintiffs’ initial complaint, filed in Trinity County on July 25, 1978, sought a declaration of nonliability or limited liability of plaintiffs-insurers to defendant corporation and Stott, its sole shareholder. Plaintiffs alleged they insured a building owned by defendants for a total of $350,000 and unscheduled personal property for $30,000; the building, located in Trinity County near Weaverville, was completely destroyed by fire on December 20, 1977, while the policies were in effect; defendants notified plaintiffs of the fire and claimed a $380,000 loss; Stott was responsible for the fire and had fraudulently concealed relevant information (income tax returns) after the loss; plaintiffs are liable, if at all, only for the actual cash value of the destroyed property, which they set as $130,000.
Personal service of plaintiffs’ first complaint on Stott, as an individual and on behalf of the corporation, was accomplished on July 25, 1978. On August 23, 1978, defendants filed a complaint in Shasta County Superior Court, claiming (1) a loss of $430,000 under the policies issued by defendants through their Redding agent, Don Bertucci; (2) wrongful refusal to pay the claim; (3) negligence by Bertucci in failing to provide $50,000 worth of insurance; and (4) misrepresentation, unfair claim practices, and defamation by the insurers. Bertucci was named a defendant in the Shasta County suit, as were the plaintiffs in the Trinity County suit.
The day after the Shasta County suit was filed, defendants noticed a demurrer and motion to change venue for hearing on September 11, 1978, in Trinity County Superior Court. They argued the demurrer should be sustained because the complaint failed to state facts sufficient to constitute a cause of action, another action was pending between the same parties for the same cause, and there was a defect or nonjoinder of parties.
At the request of all parties, the hearing was continued to November 6. On October 13, plaintiffs filed their first amended complaint for declaratory relief, the substance of which was identical to the initial complaint. On November 2, the hearing was again continued by stipulation and set for December 8.
After the hearing, the court sustained the demurrer without leave to amend on the grounds that the first amended complaint failed to state a cause of action and another action was pending. Judgment was entered *108 after the court denied plaintiffs’ motion to reconsider. 1 This appeal followed.
Plaintiffs contend the court erred in granting defendants’ demurrer because the Shasta County action was not pending when they commenced the Trinity County suit, a declaratory relief action is appropriate in the circumstances of this case, they have an absolute right to seek judicial resolution of the dispute, and defendants should not be permitted to manipulate venue by filing a subsequent action elsewhere. Defendants contend a subsequently filed action may be “another action pending” and cause for demurrer under Code of Civil Procedure section 430.10, subdivision (c), 2 declaratory relief is inappropriate because the dispute involves no third party, only past wrongs are alleged by plaintiffs, and these issues can be determined in the “main action” in Shasta County. They further contend that defendants, as “normal plaintiffs” have the right to choose venue and we may set aside a refusal to grant declaratory relief only for patent abuse of discretion.
I
We begin with a consideration of the Shasta County action and its effect on the demurrer. The general rule is that a demurrer lies only for defects appearing on the face of a complaint. (See 3 Witkin, Cal. Procedure (2d ed. 1971) Pleading, § 797, pp. 2410-2412.) When a special demurrer is interposed alleging another action pending, however, the court may take judicial notice of the pending suit. (Id., § 798 at p. 2412.) In such a case, the defendant must show that the parties, cause of action, and issues are identical, and the same evidence would support the judgment in each case. (See 3 Witkin, supra, § 821, p. 2429; Code Civ. Proc., § 430.10, subd. (c).) In this case, of course, the parties are not identical, since Bertucci is not included in the Trinity suit.
The controlling rule in this case, however, is that the pendency of another action growing out of the same transaction (here, the insur
*109
anee contracts and the fire) is a ground for abatement of the second action but never for abatement of the first.
(Kirman
v.
Borzage
(1949)
Since there is no issue raised in the Shasta County suit which could not be raised and determined in the Trinity County suit (see
Childs
v.
Eltinge
(1973)
*110 II
We turn to the second ground upon which the court sustained the demurrer, the failure of plaintiffs to state a cause of action for declaratory relief. The trial court’s order sustaining demurrer stated in part as follows: “Authorities cited at page 2343, 3 Witkin, California Procedure, sustain the proposition that ‘there is no basis for declaratory relief where only past wrongs are involved.’ While the cited cases may not represent a broad application of that rule, it would appear that the circumstances of this case as defined by the pleadings and declarations herein are uniquely appropriate for the application of the rule.” The trial court thereafter ordered the demurrer “sustained on the grounds that the Amended Complaint fails to state a cause of action.” From the above it appears that the trial court’s ruling was based on the theory that the plaintiffs’ action for declaratory relief rests only upon past wrongs.
However, analysis of the authorities indicates the rule regarding past wrongs to be as follows: “Declaratory relief operates prospectively, serving to set controversies at rest. If there is a controversy which calls for a declaration of rights, it is no objection that past wrongs are also to be redressed; but there is no basis for declaratory relief where only past wrongs are involved....” (3 Witkin, Cal. Procedure (2d ed. 1971) Pleading, § 722, pp. 2342-2343. ) 4
Hence analysis must be made of plaintiffs’ amended complaint in order to ascertain if a present controversy concerning the rights of the parties is alleged. The subject first amended complaint clearly alleges the existence of a present controversy as to the liability, if any, of the plaintiffs under the contracts of insurance in question. Thus the fundamental basis for declaratory relief is present in the pleadings, since we
*111
must take the allegations of plaintiffs’ amended complaint as true.
(Haggerty
v.
County of Kings
(1953)
Defendants’ contention that the absence of a third party precludes suit by an insurance company for a declaration of rights and obligations under an insurance contract is without merit. It is true that an insurer has no absolute right to declaratory relief
(McGraw-Edison Company
v.
Preformed Line Products Company
(9th Cir. 1966)
A controversy is no less actual or present because no third party is involved. The issue did not even arise in our consideration of
American Home Assurance Co.
v.
Essy
(1960)
In the case at bench the action commenced by plaintiffs is the main action and all issues raised therein can be properly and finally adjudicated therein.
*112
Defendants further contend that a refusal to grant declaratory relief will be set aside only for patent abuse of discretion and the trial court has not committed any such abuse. However, the Supreme Court in
Columbia Pictures Corp.
v.
DeToth
(1945)
The judgment is reversed with directions to the superior court to overrule defendants’ demurrer to plaintiffs’ first amended complaint.
Puglia, P. J., and Reynoso, J., concurred.
Respondents’ petition for a hearing by the Supreme Court was denied June 4, 1980.
Notes
Assigned by the Chairperson of the Judicial Council.
The memorandum and order states: “The issues presented by plaintiffs’ complaint for declaratory relief can be litigated in Action No. 61220 filed in Shasta County Superior Court. That remedy is speedy and adequate and will avoid a multiplicity of actions.”
Code of Civil Procedure section 430.10 reads in pertinent part: “The party against whom a complaint or cross-complaint has been filed may object, by demurrer..., to the pleading on any one or more of the following grounds: ...(c) There is another action pending between the same parties on the same cause of action.”
Even if the court’s conclusion had been correct, the appropriate action would have been an abatement, not a dismissal.
(Lord
v.
Garland
(1946)
Code of Civil Procedure section 1060 provides: “Any person interested under a deed, will or other written instrument, or under a contract, or who desires a declaration of his rights and duties with respect to another, or in respect to, in, over or upon property, or with respect to the location of the natural channel of a watercourse, may, in cases of actual controversy relating to the legal rights and duties of the respective parties, bring an original action in the superior court or file a cross-complaint in a pending action in the superior, municipal or justice court for a declaration of his rights and duties in the premises, including a determination of any question of construction or validity arising under such instrument or contract. He may ask for a declaration of rights or duties, either alone or with other relief; and the court may make a binding declaration of such rights or duties, whether or not further relief is or could be claimed at the time. The declaration may be either affirmative or negative in form and effect, and such declaration shall have the force of a final judgment. Such declaration may be had before there has been any breach of the obligation in respect to which said declaration is sought.”
