An LA traffic officer who appeared in a porn movie, in uniform and while on-duty has been fired, NBC4 has learned.

Watch the full report on NBC4 at 6 and 11

Officer John Dancler has been discharged because of his role in the porn movie, which was available on a popular subscription website for adult movies.

Dancler, in full uniform, fondles the breasts of a porn actress and spanks her.

Another officer who appeared in the adult movie has been disciplined, but allowed to remain in his job.

In April 2011 an NBC4 investigation revealed the officers’ participation in the movie, which is considered "misconduct" under LA city policy.

The NBC4 report prompted an investigation by the LA Department of Transportation into the officers’ conduct.

Bruce Gillman, spokesman for LADOT called the agency’s investigation "thorough" and said it is now complete. The department has disciplined the officers for "inappropriate behavior while on duty," Gillman said.

Dancler is appealing his termination before the city’s Civil Service Commission.

"We believe the city's action is totally unwarranted and...we believe it's a wrongful termination," Dancler’s attorney, Bobby Samini, told NBC4.

The other officer in the movie, Vaughn Dorsey, has been allowed to return to his job as a parking enforcement officer in the Valley Division after being disciplined, according to multiple sources in the department.

The agency is legally prohibited from revealing the details of the disciplinary action, Gillman said.

In the movie, Dorsey stood by while a porn actress got into his official Parking Enforcement car and performed lewd acts on herself on camera. Dorsey did not respond to requests for comment.

Sources told NBC4 that then-Chief Jimmy Price was aware of the officers' participation in the movie, but chose not to discipline them, even though they had violated city policy.

Price told NBC4 at the time that he could not make a postive identification on the officers in the movie.

Weeks after the NBC4 investigation, Price retired two years ealier than planned, and Mayor Antonio Villaraigosa brought in new management to LADOT, which promised to swiftly discipline any employee who violated city rules of conduct.

LAPD Commander Michael Williams, who is now temporarily in charge of Parking Enforcement, vowed to clean up the department.

"I assure you that we're going to put systems in place that will hold everybody accountable up and down the line," Williams told NBC4 in May. "Up and down the chain of command."