The plaintiffs filed an action in the District Court for Stanton County, Nebraska, seeking injunctive relief and damages. In the course of thе proceedings, a second amended petition was filed, to which the defendant filed a demurrer claiming that the petition did not state facts sufficient to constitute a cause of action and that there was a misjoinder of parties аnd of causes of action. This demurrer was sustained by the court on September 11, 1979, and the plaintiffs were given 2 weeks in which to file another amended petition. Plaintiffs did not file another amended petition within that time; and on October 15, 1979, defendant filed а motion for a default judgment, asking that the action be dismissed with prejudice. Plaintiffs appeared for a hearing on the motion for default; however, without hearing this motion, the trial court, on plaintiffs’ motion, granted plaintiffs leave to dismiss the action without prejudice as a matter of right, for the reason that the case had not been finally adjudicated.
*426 The defendаnt filed a motion for new trial. In overruling this motion, the trial judge indicated that the dismissal was a discretionary matter with the court. Defendant has now appealed, claiming not only that plaintiffs had no right to dismiss without prejudice, but also that the court abused its disсretion by allowing the dismissal.
Neb. Rev. Stat. §25-601 (Reissue 1979) provides, in part, that an action may be dismissed without prejudice to a future аction by the plaintiffs before the final submission of the case to the jury, or to the court where the trial is by the court. It is well settled in Nebraska that a plaintiff may dismiss his action without prejudice as a matter of right at any time before final submission. It is a statutory right and not a matter of judicial grace or discretion.
Gebhart v. Tri-State G. & T. Assn., 181
Neb. 457,
The question then to be considered in determining whether plaintiffs had a right to dismiss under § 25-601 is whether the sustaining of a demurrer is a final submission of the case, as claimed by defendant. A “final submission” within the rule that plaintiffs cаn dismiss only before final submission, contemplates a submission on both the law and the facts, and is a final submission only when nothing remains to be done to render it complete. 27 C.J.S. Dismissal and Nonsuit §20b (1959).
A demurrer under Neb. Rev. Stat. §25-806 (Reissue 1979) merely challenges defects shown on the face of the petition, which defects often can be corrected by the pleader. In fact, Neb. Rev. Stat. § 25-854 (Reissue 1979) contemplates that, if a demurrer is sustained, an adverse party may amend if the defect could be remedied by way of amendment. Although there may be some cases in which a right to amend is curtailed, ordinarily it is error for the court not to grant leave to amend when the defect could be cured by
*427
amendment.
Cagle, Inc. v. Sammons,
It is well-settled law that the sustaining of a general demurrer not followed by a judgmеnt of dismissal terminating the litigation does not constitute a final order reviewable by this court.
Root v. School Dist. No. 25,
There are few cases dealing with whether the plaintiffs have a right to dismiss after the sustaining of a demurrer to the petition. One such case is
Alphons Custodis C. Con. Co. v. Aetna In. Co.,
In the present case, while plaintiffs did not amend their petition within the time set, we believe that generally the practice in this state would havе been to permit an amendment out of time. In any event, the trial court had not considered the motion for default, so there had been no final submission of the case. It appears that the courts have liberally construed a party’s right to dismiss an action. This court has stated in
Giesler v. City of Omaha, supra
at 709,
We conclude that the sustaining of a demurrer to the petition does not constitute a final submission of the case to the court and, thеrefore, the plaintiffs have a right to a dismissal without prejudice.
Defendant cites two cases,
Bee Building Co. v. Dalton,
*429 The order of the District Court dismissing the action without prejudice is affirmed.
Affirmed.
