[#1016] Auto save before publishing