[Rt-commit] rt branch, 4.6/inline-edit, updated. rt-4.4.1-126-gcd25fac

Shawn Moore shawn at bestpractical.com
Mon Sep 12 12:13:14 EDT 2016


The branch, 4.6/inline-edit has been updated
       via  cd25facc30b67c7290d215676237915f6b813748 (commit)
      from  be5756da6c1f93c5967a6b7e2832e1dc0d63a75b (commit)

Summary of changes:
 share/html/Elements/ColumnMap | 6 ++++++
 1 file changed, 6 insertions(+)

- Log -----------------------------------------------------------------
commit cd25facc30b67c7290d215676237915f6b813748
Author: Shawn M Moore <shawn at bestpractical.com>
Date:   Mon Sep 12 16:05:32 2016 +0000

    Inline edit for custom fields

diff --git a/share/html/Elements/ColumnMap b/share/html/Elements/ColumnMap
index d08a4fc..ff29019 100644
--- a/share/html/Elements/ColumnMap
+++ b/share/html/Elements/ColumnMap
@@ -141,6 +141,12 @@ $WCOLUMN_MAP = $COLUMN_MAP = {
             }
             return @values;
         },
+        edit      => sub {
+            my $self = $WCOLUMN_MAP->{CustomField};
+            my $cf = $self->{load}->(@_);
+            return unless $cf->Id;
+            return \($m->scomp('/Elements/EditCustomField', CustomField => $cf, Object => $_[0]))
+        },
     },
     CustomRole => {
         attribute => sub { return shift @_ },

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


More information about the rt-commit mailing list