Order-disorder transition in a system of magnetic holes