Select Call type when creating; don't switch types.

This commit is contained in:
James Mason 2018-10-18 12:00:20 -07:00
parent e518431b8e
commit 75bf1380ba
4 changed files with 22 additions and 14 deletions

View file

@ -9,11 +9,5 @@ module Admin
admin_conference_program_cfp_path(conference, cfp)
end
end
def select_cfp_types(cfp, program)
cfp_types = program.remaining_cfp_types
cfp_types.unshift(cfp.cfp_type) unless cfp.new_record?
cfp_types.map { |cfp_type| ["#{cfp_type.capitalize}", cfp_type] }
end
end
end