Parliament amends electoral law