|
|
|
@ -21,7 +21,7 @@ class Admins::CompetitionNavSettingService < ApplicationService
|
|
|
|
|
else
|
|
|
|
|
com_module = CompetitionModule.create!(competition_id: competition.id, module_type: 'md')
|
|
|
|
|
end
|
|
|
|
|
com_module.update_attributes!(hidden: nav["hidden"] ? 0 : 1, position: nav["position"] ? nav["position"] : params[:navbar].length + 1, name: nav["name"], url: nav["url"])
|
|
|
|
|
com_module.update_attributes!(hidden: nav["hidden"] ? 0 : 1, position: nav["position"] ? nav["position"] : params[:navbar].length, name: nav["name"], url: nav["url"])
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
delete_module_ids = old_module_ids - module_ids
|
|
|
|
|