When an officer discharges ex officio the duties of another office, his official signature and the attestation shall be in the name of the office which he discharges.