[Rt-commit] rt branch, 4.4/supplement-column-map, created. rt-4.4.4-191-gbed31a4038

? sunnavy sunnavy at bestpractical.com
Fri Dec 18 15:52:55 EST 2020


The branch, 4.4/supplement-column-map has been created
        at  bed31a4038238472128bef092b7548b16be078be (commit)

- Log -----------------------------------------------------------------
commit bed31a4038238472128bef092b7548b16be078be
Author: Shawn M Moore <shawn at bestpractical.com>
Date:   Tue Jul 26 20:26:06 2016 +0000

    Add missing ColumnMap entries
    
    Fixes: I#22386

diff --git a/share/html/Elements/RT__Article/ColumnMap b/share/html/Elements/RT__Article/ColumnMap
index 38de8f51d6..6bf16d78c0 100644
--- a/share/html/Elements/RT__Article/ColumnMap
+++ b/share/html/Elements/RT__Article/ColumnMap
@@ -71,6 +71,11 @@ $COLUMN_MAP = {
         title     => 'Class id',                   # loc
         value     => sub { $_[0]->Class },
     },
+    URI => {
+        attribute => 'URI',
+        title     => 'URI',                   # loc
+        value     => sub { $_[0]->URI },
+    },
     ClassName => {
         attribute => 'Class',
         title     => 'Class',                               # loc
@@ -88,7 +93,12 @@ $COLUMN_MAP = {
             }
             return \$topics;
         },
-    }
+    },
+    Disabled => {
+        title     => 'Status', # loc
+        attribute => 'Disabled',
+        value     => sub { return $_[0]->Disabled? $_[0]->loc('Disabled'): $_[0]->loc('Enabled') },
+    },
 };
 
 </%ONCE>
diff --git a/share/html/Elements/RT__CustomField/ColumnMap b/share/html/Elements/RT__CustomField/ColumnMap
index 965f99c373..44e684ed94 100644
--- a/share/html/Elements/RT__CustomField/ColumnMap
+++ b/share/html/Elements/RT__CustomField/ColumnMap
@@ -63,7 +63,7 @@ my $COLUMN_MAP = {
             title     => $c, attribute => $c,
             value     => sub { return $_[0]->$c() },
         } }
-        qw(Name Description Type LookupType Pattern EntryHint)
+        qw(Name Description Type LookupType Pattern EntryHint RenderType ValuesClass CanonicalizeClass)
     ),
     map(
         { my $c = $_; my $short = $c; $short =~ s/^Friendly//;
@@ -73,6 +73,11 @@ my $COLUMN_MAP = {
         } }
         qw(FriendlyLookupType FriendlyType FriendlyPattern)
     ),
+    BasedOn => {
+        title     => 'Based On',
+        attribute => 'BasedOn',
+        value     => sub { return $_[0]->BasedOnObj->Name },
+    },
     MaxValues => {
         title     => 'MaxValues', # loc
         attribute => 'MaxValues',
@@ -81,6 +86,11 @@ my $COLUMN_MAP = {
             return !$v ? $_[0]->loc('unlimited') : $v == 0 ? $_[0]->loc('one') : $v;
         },
     },
+    UniqueValues => {
+        title     => 'UniqueValues', # loc
+        attribute => 'UniqueValues',
+        value     => sub { return $_[0]->UniqueValues ? $_[0]->loc('Unique values') : '' },
+    },
     AddedTo => {
         title     => 'Added', # loc
         value     => sub {
diff --git a/share/html/Elements/RT__Queue/ColumnMap b/share/html/Elements/RT__Queue/ColumnMap
index 8c902fbe74..271250cd71 100644
--- a/share/html/Elements/RT__Queue/ColumnMap
+++ b/share/html/Elements/RT__Queue/ColumnMap
@@ -57,6 +57,11 @@ my $COLUMN_MAP = {
         attribute => 'Disabled',
         value     => sub { return $_[0]->Disabled? $_[0]->loc('Disabled'): $_[0]->loc('Enabled') },
     },
+    SLADisabled => {
+        title     => 'SLA Status', # loc
+        attribute => 'SLADisabled',
+        value     => sub { return $_[0]->SLADisabled? $_[0]->loc('Disabled'): $_[0]->loc('Enabled') },
+    },
     InitialPriority => {
         title     => 'InitialPriority', # loc
         value     => sub { $_[0]->DefaultValue('InitialPriority') || '' },
diff --git a/share/html/Elements/RT__Template/ColumnMap b/share/html/Elements/RT__Template/ColumnMap
index 732bdeba42..92895d1121 100644
--- a/share/html/Elements/RT__Template/ColumnMap
+++ b/share/html/Elements/RT__Template/ColumnMap
@@ -73,6 +73,11 @@ my $COLUMN_MAP = {
         title     => 'Queue', # loc
         value     => sub { $_[0]->Queue },
     },
+    Type => {
+        title     => 'Type', # loc
+        attribute => 'Type',
+        value     => sub { $_[0]->Type },
+    },
     IsEmpty => {
         title     => 'Empty', # loc
         value     => sub { $_[0]->IsEmpty? $_[0]->loc('Yes') : $_[0]->loc('No') },

-----------------------------------------------------------------------


More information about the rt-commit mailing list