The Third Appellate District reversed a judgment. The court held that a plea bargain between a defendant and the trial court that made the defendant’s guilty plea contingent on the trial court’s dismissal of an enhancement was unlawful.

Aaron Woosley was charged with two counts of burglary and one count of petty theft. He was also alleged to have committed one of the crimes while released on bail. To induce Woosley to plead guilty to all counts and admit the charged enhancement, the trial court promised, over the prosecutor’s objection, to dismiss the enhancement and impose an agreed-upon sentence. Woosley’s agreement was expressly conditioned on dismissal of the enhancement and imposition of a prison term no longer than that indicated by the trial court.