Raynham police had charged Rodriguez, 71, of Providence, a Market Basket janitor, with indecently touching a 4-year-old boy in the store’s bathroom on June 1.

Judge Daniel O’Shea added a “do not release” order to the warrant, meaning the defendant cannot be released on bail before appearing before a judge.

The child’s father, Jason R. Beatrice, 31, of Oak Street in Raynham, was charged with assaulting the suspect in connection with the alleged act.

He is due to be arraigned on July 31.

The alleged incident occurred after Beatrice took his son to the bathroom in the rear of the store.

He had just placed the youngster on a bucket so he could reach the urinal when Rodriguez allegedly reached under a nearby stall and ran his hand up the boy’s leg, the police report states.

Beatrice told police he had forced the stall door open and yanked the man out.

A witness said Beatrice began to punch Rodriguez, who suffered a minor cut to his lip and a welt on his forehead.

Through a Spanish interpreter, he admitted he was wrong for touching the boy but said he was “only fooling around,” according to the police report.

Pacheco faced a firestorm of public criticism for summonsing and charging Rodriguez, rather than arresting and charging him, and for charging Beatrice after he rushed in to defend his son.

Pacheco said the parties were summonsed because neither has criminal records nor warrants and Rodriguez posed no apparent threat to the public.

And while the father claims the incident was an outright sexual assault, there was an arguable dispute on the facts, as the elderly man who could only speak through an interpreter, said he was “just joking around,” Pacheco later said in a prepared statement.

“It is unfortunate that there appears to be some type of public assumption that the police stopped a father from protecting his son and let a child molester go, that is absolutely not true,” he said.

Police said Beatrice “could have detained the man and had a witness call the authorities.”

Had he been arrested, Rodriguez would have been arraigned that night and released on bail, Pacheco said.

He said he could request a rendition order from the Bristol County District Attorney’s office to have Rodriguez picked up in Rhode Island and handed over to Massachusetts’ authorities.

On July 7, Jay Rainville, a spokesman for Demoulas, parent company of Market Basket, said Rodriguez had been suspended from his job, pending the investigation and court case.

That was two days after Beatrice distributed fliers around town, warning residents that he had found the suspect still working at the store on July 4, “pushing a mop bucket and smiling at children.”