§ 1302. Action brought on relation of a person. Where an action is brought by the attorney-general on the relation or information of a person having an interest in the question, the complaint shall allege, and the title of the action shall show, that the action is so brought. As a condition of bringing an action for the benefit of a person having an interest in the question, the attorney-general shall require the relator to give an undertaking to indemnify the state against costs and expenses.