Where, as a condition for the grant of an interlocutory injunction against interfering with the possession of land, the plaintiff was required to file and did file a bond to indemnify the defendant for such rentals as the jury on the final trial of the case should find to be due by the plaintiff to the defendant according to such interest as the defendant might be found to have in the land, and where this court reversed the grant of the injunction giving the plaintiff possession of the premises, as being mandatory in character, and the defendant filed a petition in the same proceeding for restitution and other relief, the dismissal of the entire cause on motion of the plaintiff and objection by the defendant was erroneous, and was a final judgment from which a writ of error would lie to this court.
The Code, § 55-202, provides that in injunction hearings the judge "shall, on rendering the decision or in granting the writ of error, make such order and require such bond as may be necessary to preserve and protect the rights of the parties until the judgment of the Supreme Court can be had thereon, which he shall do as well in cases of refusal as of granting an injunction."
The bond in this case specifically provided, as a condition of liability, that "the jury upon the final trial of said case" should find that defendant had an interest in the property, and find what "rentals" the plaintiff was due to the defendant for such interest. *Page 514 By giving this bond the plaintiff, without previously having possession of the land in dispute, obtained possession pending the suit. Under the terms of the bond, no recovery could be had thereon without a determination in the cause itself as to the interest of the defendant and the amount of rentals due him by the plaintiff if he had an interest. This is true irrespective of whether or not, in the event of a determination of these questions favorably to the defendant, he could summarily enter in the same case a judgment on the bond against the principal and the surety as in cases of appeal, or would have to resort to an independent action to enforce any favorable findings which might be made by a jury in the present case. See, in this connection,United States Fidelity Guaranty Co. v. Tucker, 165 Ga. 283,286 (140 S.E. 866); Jordan v. Callaway, 138 Ga. 209,210 (75 S.E. 101); Offerman Western R. Co. v. Waycross AirLine R. Co., 112 Ga. 610, 612 (37 S.E. 871); Code, §§ 103-209, 55-204; 28 Am. Jur. 528 (§§ 355, 356).
Ordinarily a plaintiff may dismiss his action with or without an order of court, and no writ of error will lie from such an order. Davenport v. Hardman, 184 Ga. 518 (192 S.E. 11), and cit.; Dannelly v. Speer, 7 Ga. 227, 228; Kent v.Hunter, 9 Ga. 207. But an entire cause cannot properly be dismissed over objection by the defendant, when his affirmative rights under the pleadings would be prejudiced thereby; and a writ of error would lie from such an order. While the dismissal of a petition alone would carry with it an answer "to the extent of defensive matter," such a dismissal should not affect any counterclaims, and must not preclude the defendant's "right to a hearing or trial of such claims." American Legion v. Miller,183 Ga. 754, 756 (189 S.E. 837), and cit.; Jones v.Thacker, 61 Ga. 329 (2); Winn v. Armour Co., 184 Ga. 769 (3), 772 (193 S.E. 447); Byrd v. Equitable Life AssuranceSociety, 185 Ga. 628 (3), 637 (196 S.E. 63); Code, § 3-510. Under these rules and the preceding holdings, the order dismissing the case in its entirety, on the plaintiff's motion and over the defendant's objection, was erroneous; and the motion to dismiss the defendant's writ of error is denied.
Moreover, on the reversal of a judgment, the trial court should, even without an express mandate from the appellate court so directing, enforce a restitution between the parties with reference *Page 515 to the subject-matter of the suit, so as to place or restore their status in accordance with the appellate decision. 5 C. J. S. 1542-1546 (§§ 1980-1985), and cit. See generally, on the right to restitution, Jordan v. Jordan, 16 Ga. 446, 452;Perkins v. Rowland, 69 Ga. 661, 662; Hartsfield Co. v.Ray, 51 Ga. App. 106 (1, 2, 4) (179 S.E. 732). Accordingly, for the additional reason that the defendant had a right to an order of restitution, as prayed, in conformity with the previous decision of this court that the mandatory injunction had been erroneously granted, the dismissal of the suit over the objection of the defendant was erroneous.
Judgment reversed. All the Justices concur.