From f5cf4e66debaa4af9536c9f91e97a5a347ca8f7c Mon Sep 17 00:00:00 2001 From: Jason Naylor Date: Tue, 3 Feb 2026 09:52:38 -0800 Subject: [PATCH] Fix LT-22316: Don't add custom field columns automatically * This was introduced in the fix for LT-22265, custom fields unexpectedly have a common attribute value of 'true' --- Src/Common/Controls/XMLViews/XmlBrowseViewBaseVc.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Src/Common/Controls/XMLViews/XmlBrowseViewBaseVc.cs b/Src/Common/Controls/XMLViews/XmlBrowseViewBaseVc.cs index 15a3f3ef03..f0331dc7c1 100644 --- a/Src/Common/Controls/XMLViews/XmlBrowseViewBaseVc.cs +++ b/Src/Common/Controls/XMLViews/XmlBrowseViewBaseVc.cs @@ -230,9 +230,11 @@ public XmlBrowseViewBaseVc(XmlNode xnSpec, int fakeFlid, XmlBrowseViewBase xbv) foreach (var node in newPossibleColumns) { - // add any possible columns that were not in the saved list and are common - if (XmlUtils.GetOptionalAttributeValue(node, "common", "false") == "true") + // add any possible columns that were not in the saved list and are common (and not custom) + if (!IsCustomField(node, out _) && XmlUtils.GetOptionalAttributeValue(node, "common", "false") == "true") + { ColumnSpecs.Add(node); + } } } m_fakeFlid = fakeFlid;