From 562cc330456baeab22410dd0f21b39404ba3a6c0 Mon Sep 17 00:00:00 2001 From: Matchu Date: Mon, 6 Nov 2023 12:55:03 -0800 Subject: [PATCH] Fix closet list petpage export I uhhh don't know why this ever worked at all lmao. Simple fix, I'd been avoiding it for a while assuming it was worse lol! --- app/controllers/closet_hangers_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/closet_hangers_controller.rb b/app/controllers/closet_hangers_controller.rb index 98b10162..da156252 100644 --- a/app/controllers/closet_hangers_controller.rb +++ b/app/controllers/closet_hangers_controller.rb @@ -70,7 +70,8 @@ class ClosetHangersController < ApplicationController def petpage # Find all closet lists, and also the hangers of the visible closet lists - closet_lists = @user.closet_lists.select([:id, :name, :hangers_owned]).alphabetical + closet_lists = @user.closet_lists.select([ + :id, :name, :hangers_owned, :description]).alphabetical if params[:filter] # If user specified which lists should be visible, restrict to those if params[:lists] && params[:lists].respond_to?(:keys)