MDL-38883 calendar: fix missing setType