by Stats. 1986, Ch. 820, Sec. 16. Operative July 1, 1987, by Sec. 43 of Ch. 820.)
395.2. If an unincorporated association has filed a statement with the Secretary of State pursuant to statute, designating its principal office in this state, the proper county for the trial of an action against the unincorporated association is the same as it would be if the unincorporated association were a corporation and, for the purpose of determining the proper county, the principal place of business of the unincorporated association shall be deemed to be the principal office in this state listed in the statement.
(Amended by Stats. 2004, Ch. 178, Sec. 2. Effective January 1, 2005.)
395.5. A corporation or association may be sued in the county where the contract is made or is to be performed, or where the obligation or liability arises, or the breach occurs; or in the county where the principal place of business of such corporation is situated, subject to the power of the court to change the place of trial as in other cases.
(Added by Stats. 1972, Ch. 118.)
396. (a) No appeal or petition filed in the superior court shall be dismissed solely because the appeal or petition was not filed in the proper state court.
(b) If the superior court lacks jurisdiction of an appeal or petition, and a court of appeal or the Supreme Court would have jurisdiction, the appeal or petition shall be transferred to the court having jurisdiction upon terms as to costs or otherwise as may be just, and proceeded with as if regularly filed in the court having jurisdiction.
(Repealed and added by Stats. 2008, Ch. 56, Sec. 2. Effective January 1, 2009.)
396a. In a case that is subject to Sections 1812.10 and 2984.4 of the Civil Code, or subdivision (b) of Section 395 of the Code of Civil Procedure, or in an action or proceeding for an unlawful detainer as defined in Section 1161 of the Code of Civil Procedure:
(a) The plaintiff shall state facts in the complaint, verified by the plaintiff’s oath, or the oath of the plaintiff’s attorney, or in an affidavit of the plaintiff or of the plaintiff’s attorney filed with the complaint, showing that the action has been commenced in the proper superior court and the proper court location for the trial of the action or proceeding, and showing that the action is subject to the provisions of Sections 1812.10 and 2984.4 of the Civil Code or subdivision (b) of Section 395 of the Code of Civil Procedure, or is an action for an unlawful detainer. When the affidavit is filed with the complaint, a copy thereof shall be served with the summons. Except as provided in this section, if the complaint or affidavit is not filed pursuant to this subdivision, no further proceedings may occur in the action or proceeding, except to dismiss the action or proceeding without prejudice. However, the court may, on terms that are just, permit the affidavit to be filed after the filing of the complaint, and a copy of the affidavit shall be served on the defendant and the time to answer or otherwise plead shall date from that service.
(b) If it appears from the complaint or affidavit, or otherwise, that the superior court or court location where the action or proceeding is commenced is not the proper court or court location for the trial, the court where the action or proceeding is commenced, or a judge thereof, shall, whenever that fact appears, transfer it to the proper court or court location, on its own motion, or on motion of the defendant, unless the defendant consents in writing, or in open court (consent in open court being entered in the minutes of the court), to the keeping of the action or proceeding in the court or court location where commenced. If that consent is given, the action or proceeding may continue in the court or court location where commenced. Notwithstanding Section 1801.1 and subdivision (f) of Section 2983.7 of the Civil Code, that consent may be given by a defendant who is represented by counsel at the time the consent is given, and if an action or proceeding is subject to subdivision (b) of Section 395 or is for an unlawful detainer, that consent may only be given by a defendant who is represented by counsel at the time the consent is given.
(c) In any case where the transfer of the action or proceeding is ordered under subdivision (a) or (b), if summons is served prior to the filing of the action or proceeding in the superior court or court location to which it is transferred, as to any defendant, so served, who has not appeared in the action or proceeding, the time to answer or otherwise plead shall date from service upon that defendant of written notice of the filing.
(d) If it appears from the complaint or affidavit of the plaintiff that the superior court and court location where the action or proceeding is commenced are a proper court and court location for the trial thereof, all proper proceedings may be had, and the action or proceeding may be tried in that court at that location.
(e) A motion for a transfer of the action or proceeding to a different superior court may be made as in other cases, within the time, upon the grounds, and in the manner provided in this title, and if upon that motion it appears that the action or proceeding is not pending in the proper court, or should for other cause be transferred, the action or proceeding shall be ordered transferred as provided in this title.
If any action or proceeding is ordered transferred to another court as provided in this section, proceedings shall be had, and the costs and fees shall be paid, as provided in Sections 398 and 399.
(f) If a motion is made for transfer of an action or proceeding to a different court location within the same superior court as provided in this section, proceedings shall be had as provided by local rules of the superior court.
(Amended by Stats. 2007, Ch. 263, Sec. 5. Effective January 1, 2008.)
396b. (a) Except as otherwise provided in Section 396a, if an action or proceeding is commenced in a court having jurisdiction of the subject matter thereof, other than the court designated as the proper court for the trial thereof, under this title, the action may, notwithstanding, be tried in the court where commenced, unless the defendant, at the time he or she answers, demurs, or moves to strike, or, at his or her option, without answering, demurring, or moving to strike and within the time otherwise allowed to respond to the complaint, files with the clerk, a notice of motion for an order transferring the action or proceeding to the proper court, together with proof of service, upon the adverse party, of a copy of those papers. Upon the hearing of the motion the court shall, if it appears that the action or proceeding was not commenced in the proper court, order the action or proceeding transferred to the proper court.
(b) In its discretion, the court may order the payment to the prevailing party of reasonable expenses and attorney’s fees incurred in making or resisting the motion to transfer whether or not that party is otherwise entitled to recover his or her costs of action. In determining whether that order for expenses and fees shall be made, the court shall take into consideration (1) whether an offer to stipulate to change of venue was reasonably made and rejected, and (2) whether the motion or selection of venue was made in good faith given the facts and law the party making the motion or selecting the venue knew or should have known. As between the party and his or her attorney, those expenses and fees shall be the personal liability of the attorney not chargeable to the party. Sanctions shall not be imposed pursuant to this subdivision except on notice contained in a party’s papers, or on the court’s own noticed motion, and after opportunity to be heard.
(c) The court in a proceeding for dissolution of marriage or legal separation or under the Uniform Parentage Act (Part 3 (commencing with Section 7600) of Division 12 of the Family Code) may, prior to the determination of the motion to transfer, consider and determine motions for allowance of temporary spousal support, support of children, and counsel fees and costs, and motions to determine custody of and visitation with children, and may make all necessary and proper orders in connection therewith.
(d) In any case, if an answer is filed, the court may consider opposition to the motion to transfer, if any, and may retain the action in the county where commenced if it appears that the convenience of the witnesses or the ends of justice will thereby be promoted.
(e) If the motion to transfer is denied, the court shall allow the defendant time to move to strike, demur, or otherwise plead if the defendant has not previously filed a response.
(Amended by Stats. 2005, Ch. 706, Sec. 10. Effective January 1, 2006.)
397. The court may, on motion,