A. When a defendant files a motion to quash or other preliminary plea, the running of the periods of limitation established by Article 578 shall be suspended until the ruling of the court thereon; but in no case shall the state have less than one year after the ruling to commence the trial.B. The periods of limitation established by Article 578 shall also be suspended if the court grants a continuance in accordance with the provisions of Paragraph B of Article 709.