The Bisbee City Council has voted to rewrite an ordinance on same-sex unions to take out parts that apparently run afoul of a state ban on same-sex marriage.

That came Thursday night, more than a week after the council initially approved the ordinance and after the state Attorney General's Office threatened to sue.

Bisbee Mayor Adriana Badal said the council voted Thursday night to pull the ordinance so it can be revised to take out items that raised the ire of Attorney General Tom Horne.

Horne objected to provisions about community property, inheritances, appointment of guardians and disposition of remains after death that he says run afoul of a 2008 voter-approved state constitutional ban on same-sex marriages.

Horne spokeswoman Stephanie Grisham said Friday that the planned lawsuit likely won't be needed now.