A row over places for Gaelic students at an Edinburgh secondary school has been resolved following a council U-turn.

P7 pupils from Bun-sgoil Taobh na Pairce in Pilrig are usually given places at James Gillespie’s in Marchmont, which offers Gaelic provision.

Council officials had warned up to nine Gaelic-speaking pupils might not receive a place at the high school due to a large amount of enrolment requests.

Parents were told their children would be offered places at Tynecastle High, which provides more limited Gaelic lessons.

The issue was due to be discussed by councillors at a meeting on Tuesday but the report was withdrawn after Bord na Gaidlig, which promotes Gaelic, threatened legal action over the issue.

All P7 pupils from Taobh na Pairce will now be given a place at James Gillespie's in the next school year.

Billy MacIntyre, head of operational support for communities and families at Edinburgh City Council, confirmed the news in a letter to all P7 parents in the James Gillespie's High School cluster.

He said: "We have listened to the concerns that were raised following the publication of the committee report last week and will ensure that arrangements are put in place to manage the increased S1 roll for 2016-17.

"The council has a strong commitment to Gaelic within the city and since we opened Bun-sgoil Taobh na Pairce in 2013 we have seen an increase in families choosing Gaelic medium education for their children."

A consultation on secondary school arrangements for Gaelic pupils and how to manage rising pressures on school rolls is expected to be held to establish what will happen from August 2017.