[Rt-commit] rt branch, 4.0/column-map-validation, created. rt-4.0.13-63-gd494543

Todd Wade todd at bestpractical.com
Thu Jun 13 10:15:05 EDT 2013


The branch, 4.0/column-map-validation has been created
        at  d4945432b19b9c9656a148879733f1a9cfd18510 (commit)

- Log -----------------------------------------------------------------
commit d4945432b19b9c9656a148879733f1a9cfd18510
Author: Todd Wade <todd at bestpractical.com>
Date:   Thu Jun 13 10:13:59 2013 -0400

    add missing fields to ColumnMap files
    
    see [issues#22386]

diff --git a/share/html/Elements/RT__Article/ColumnMap b/share/html/Elements/RT__Article/ColumnMap
index e900e19..3ed960b 100644
--- a/share/html/Elements/RT__Article/ColumnMap
+++ b/share/html/Elements/RT__Article/ColumnMap
@@ -55,6 +55,11 @@ $Attr => undef
 my $COLUMN_MAP;
 
 $COLUMN_MAP = {
+    id => {
+        title     => '#', # loc
+        attribute => 'id',
+        value     => sub { return $_[0]->id },
+    },
     Name => {
         attribute => 'Name',
         title     => 'Name',                   # loc
@@ -70,6 +75,16 @@ $COLUMN_MAP = {
         title     => 'Class id',                   # loc
         value     => sub { $_[0]->Class },
     },
+    Parent => {
+        attribute => 'Parent',
+        title     => 'Parent',                   # loc
+        value     => sub { $_[0]->Parent },
+    },
+    URI => {
+        attribute => 'URI',
+        title     => 'URI',                   # loc
+        value     => sub { $_[0]->URI },
+    },
     ClassName => {
         attribute => 'Class',
         title     => 'Class',                               # loc
diff --git a/share/html/Elements/RT__CustomField/ColumnMap b/share/html/Elements/RT__CustomField/ColumnMap
index 9df091d..4b3d0a1 100644
--- a/share/html/Elements/RT__CustomField/ColumnMap
+++ b/share/html/Elements/RT__CustomField/ColumnMap
@@ -68,7 +68,7 @@ my $COLUMN_MAP = {
             title     => $c, attribute => $c,
 	    value     => sub { return $_[0]->$c() },
         } }
-        qw(Name Description Type LookupType Pattern)
+        qw(Name Description Type LookupType Pattern RenderType BasedOn ValuesClass)
     ),
     map(
         { my $c = $_; my $short = $c; $short =~ s/^Friendly//;
diff --git a/share/html/Elements/RT__Group/ColumnMap b/share/html/Elements/RT__Group/ColumnMap
index 3c22deb..4b093f7 100644
--- a/share/html/Elements/RT__Group/ColumnMap
+++ b/share/html/Elements/RT__Group/ColumnMap
@@ -83,6 +83,21 @@ my $COLUMN_MAP = {
 	attribute => 'Description',
 	value     => sub { return $_[0]->Description() },
     },
+    Domain => {
+        title     => 'Domain', # loc
+        attribute => 'Domain',
+        value     => sub { return $_[0]->Domain() },
+    },
+    Type => {
+        title     => 'Type', # loc
+        attribute => 'Type',
+        value     => sub { return $_[0]->Type() },
+    },
+    Instance => {
+        title     => 'Instance', # loc
+        attribute => 'Instance',
+        value     => sub { return $_[0]->Instance() },
+    },
 };
 
 </%ONCE>

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


More information about the Rt-commit mailing list