[Rt-commit] rt branch, 5.0/fix-saved-search-component, created. rt-5.0.0-2-gf3db9e5b8d
Aaron Trevena
ast at bestpractical.com
Thu Aug 6 03:37:02 EDT 2020
The branch, 5.0/fix-saved-search-component has been created
at f3db9e5b8d66cace96f3e680b06b2a97ea31d00f (commit)
- Log -----------------------------------------------------------------
commit f3db9e5b8d66cace96f3e680b06b2a97ea31d00f
Author: Aaron Trevena <ast at bestpractical.com>
Date: Thu Aug 6 08:34:04 2020 +0100
Add ColumnMapClassName method to RT::SharedSetting
Allow SavedSearch and other SharedSetting Classes with ColumnMaps
to be usable in CollectionList.
Fixes RT #36605: Broken SavedSearches Component
diff --git a/lib/RT/SharedSetting.pm b/lib/RT/SharedSetting.pm
index f66912876b..30d33522eb 100644
--- a/lib/RT/SharedSetting.pm
+++ b/lib/RT/SharedSetting.pm
@@ -385,6 +385,23 @@ sub CurrentUserCanCreate { 1 }
sub CurrentUserCanModify { 1 }
sub CurrentUserCanDelete { 1 }
+=head2 ColumnMapClassName
+
+ColumnMap needs a massaged collection class name to load the correct list
+display. Equivalent to L<RT::SearchBuilder/ColumnMapClassName>, but provided
+for a record instead of a collection.
+
+Returns a string. May be called as a package method.
+
+=cut
+
+sub ColumnMapClassName {
+ my $self = shift;
+ my $Class = ref($self) || $self;
+ $Class =~ s/:/_/g;
+ return $Class;
+}
+
### Internal methods
# _GetObject: helper routine to load the correct object whose parameters
-----------------------------------------------------------------------
More information about the rt-commit
mailing list