A state appeals court has overturned a judge’s order requiring the Jersey City Police Department to undergo annual training on transgender discrimination as a remedy for its discriminatory treatment of a shoplifting suspect.

The Appellate Division ruled Friday that the trial judge, Martha Lynes of Hudson County Superior Court, erred by issuing the order without first allowing the parties to submit briefs on the scope of the transgender sensitivity training. Lynes initially said such briefing would be allowed, but ultimately the briefing was not permitted and no reason was given, said Appellate Division Judges Jack Sabatino, Thomas Sumners Jr. and Richard Geiger.