diff options
author | Shawn M Moore <shawn@bestpractical.com> | 2016-07-26 23:26:06 +0300 |
---|---|---|
committer | Shawn M Moore <shawn@bestpractical.com> | 2016-07-26 23:26:06 +0300 |
commit | ae43278103d06e394cc031858b999ad99a22c267 (patch) | |
tree | 5b074a24d993d9628b87ef9754e2ccb6780a5f2c | |
parent | 16d1d22db43a2d6af20f1dae227b72b1dcfe6299 (diff) |
Add missing ColumnMap entries4.4/column-map-validation
Discovered by t/api/column-map.t
Fixes: I#22386
-rw-r--r-- | share/html/Elements/RT__Article/ColumnMap | 12 | ||||
-rw-r--r-- | share/html/Elements/RT__Class/ColumnMap | 5 | ||||
-rw-r--r-- | share/html/Elements/RT__CustomField/ColumnMap | 12 | ||||
-rw-r--r-- | share/html/Elements/RT__Queue/ColumnMap | 5 | ||||
-rw-r--r-- | share/html/Elements/RT__Template/ColumnMap | 4 | ||||
-rw-r--r-- | share/html/Elements/RT__User/ColumnMap | 5 |
6 files changed, 41 insertions, 2 deletions
diff --git a/share/html/Elements/RT__Article/ColumnMap b/share/html/Elements/RT__Article/ColumnMap index 23476a9ff0..f98713237b 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__Class/ColumnMap b/share/html/Elements/RT__Class/ColumnMap index ac0a09a348..86af9a6e1e 100644 --- a/share/html/Elements/RT__Class/ColumnMap +++ b/share/html/Elements/RT__Class/ColumnMap @@ -67,6 +67,11 @@ my $COLUMN_MAP = { attribute => 'Disabled', value => sub { return $_[0]->Disabled? $_[0]->loc('Disabled'): $_[0]->loc('Enabled') }, }, + HotList => { + title => 'HotList', # loc + attribute => 'HotList', + value => sub { return $_[0]->HotList ? $_[0]->loc('HotList') : '' }, + }, }; diff --git a/share/html/Elements/RT__CustomField/ColumnMap b/share/html/Elements/RT__CustomField/ColumnMap index bdc85593d4..617aaef164 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 2ab8937ca4..8e878e660e 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 c4bffb7f83..7c9250a672 100644 --- a/share/html/Elements/RT__Template/ColumnMap +++ b/share/html/Elements/RT__Template/ColumnMap @@ -73,6 +73,10 @@ my $COLUMN_MAP = { title => 'Queue', # loc value => sub { $_[0]->Queue }, }, + Type => { + title => 'Type', # loc + value => sub { $_[0]->Type }, + }, IsEmpty => { title => 'Empty', # loc value => sub { $_[0]->IsEmpty? $_[0]->loc('Yes') : $_[0]->loc('No') }, diff --git a/share/html/Elements/RT__User/ColumnMap b/share/html/Elements/RT__User/ColumnMap index 94c8873ed4..1c0b896b3b 100644 --- a/share/html/Elements/RT__User/ColumnMap +++ b/share/html/Elements/RT__User/ColumnMap @@ -137,6 +137,11 @@ my $COLUMN_MAP = { attribute => 'Lang', value => sub { return $_[0]->Lang() }, }, + Timezone => { + title => 'Timezone', #loc + attribute => 'Timezone', + value => sub { return $_[0]->Timezone() }, + }, FreeformContactInfo => { title => 'Extra Info', #loc attribute => 'FreeformContactInfo', |