(a)
The recovery of civil penalties pursuant to Section 39674, 42401, 42402, 42402.1, 42402.2, 42402.3, or 42402.4 precludes prosecution under Section 42400, 42400.1, 42400.2, 42400.3, 42400.3.5, or 42400.4 for the same offense. When a district refers a violation to a prosecuting agency, the filing of a criminal complaint is grounds requiring the dismissal of any civil action brought pursuant to this article for the same offense.
(b)
If the pending civil action described in subdivision (a) includes a request for injunctive relief, that portion of the civil action shall not be dismissed upon the filing of a criminal complaint for the same offense.