A councillor’s bid for the post triggers a confrontation before senior leaders intervene and secure the election of the party’s official nominee