Code of conduct could not stop parties from campaigning