An AI official confirmed the incident.
"The commander had left the cockpit to visit the washroom and on returning, found the door locked. It had got jammed and all efforts to open it, even from inside by the co-pilot, failed," the official said.
The co-pilot contacted ground control and the flight was diverted to Bhopal, where technicians were called in to fix the door. It finally took off after the necessary clearance.