If a candidate nominated at a primary election for a particular office dies or withdraws before the general city election, the vacancy on the ballot shall be filled with the name of the candidate for the same office who ranked next highest in the number of votes received at the primary to those who were determined to be the nominees for the office sought by the dead or withdrawing candidate.
65 ILCS 5/7-2-23