diff --git a/app/controllers/items_controller.rb b/app/controllers/items_controller.rb index 6f47ee54..a05b7294 100644 --- a/app/controllers/items_controller.rb +++ b/app/controllers/items_controller.rb @@ -114,7 +114,8 @@ class ItemsController < ApplicationController def sources item_ids = params[:ids].split(",") - @items = Item.where(id: item_ids).includes(:nc_mall_record).order(:name) + @items = Item.where(id: item_ids).includes(:nc_mall_record).order(:name). + limit(50) if @items.empty? render file: "public/404.html", status: :not_found, layout: nil