From 3b038d451d3c666c7d56a84749c18bdfd0b2042a Mon Sep 17 00:00:00 2001 From: Moritz Date: Wed, 3 Dec 2025 18:20:32 +0100 Subject: [PATCH] fix: use all_custom_fields in prepare_dynamic_cols Allows users to enable globally hidden custom fields in the table view --- lib/mv_web/live/member_live/index.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/mv_web/live/member_live/index.ex b/lib/mv_web/live/member_live/index.ex index 086765c..0e39cc6 100644 --- a/lib/mv_web/live/member_live/index.ex +++ b/lib/mv_web/live/member_live/index.ex @@ -405,8 +405,9 @@ defmodule MvWeb.MemberLive.Index do defp prepare_dynamic_cols(socket) do visible_custom_field_ids = socket.assigns[:visible_custom_field_ids] || [] + # Use all_custom_fields to allow users to enable globally hidden custom fields dynamic_cols = - socket.assigns.custom_fields_visible + socket.assigns.all_custom_fields |> Enum.filter(fn custom_field -> custom_field.id in visible_custom_field_ids end) |> Enum.map(fn custom_field -> %{