diff --git a/app/controllers/hacks_controller.rb b/app/controllers/hacks_controller.rb index 3dddf6100..bdef733a3 100644 --- a/app/controllers/hacks_controller.rb +++ b/app/controllers/hacks_controller.rb @@ -190,6 +190,8 @@ class HacksController < ApplicationController @hack.hack_sets.where(id: delete_set_ids).destroy_all logger.info("#######sets:#{sets}") sets.each do |set| + logger.info("###set[:id]: #{set[:id]}") + logger.info("###all_sets: #{all_sets_id.include?(set[:id])}") if all_sets_id.include?(set[:id]) update_attrs = {input: set[:input], output: set[:output], position: set[:position]} @hack.hack_sets.find_by!(id: set[:id]).update_attributes(update_attrs)