In a relief to Gupta, the court ordered not to arrest him till August 11, the next date of hearing in the case.
A communication in this regard was given to chief electoral officer and assembly secretary by the Election Commission.
Election to three Rajya Sabha seats from Kerala falling vacant next month was to be held on April 12.
The notification for the biennial elections will be issued on March 24.
Modi had been elected to the state assembly, the state legislative council, the Lok Sabha and now, the Rajya Sabha.
Rajya Sabha elections do not take place by secret ballot as the voter has to show the marked ballot to the party's polling agent before putting it in the ballot box.