[Rt-commit] r13591 - in rt/3.8/trunk: . share/html/Admin/CustomFields

kyoki at bestpractical.com kyoki at bestpractical.com
Wed Jun 25 16:31:30 EDT 2008


Author: kyoki
Date: Wed Jun 25 16:31:29 2008
New Revision: 13591

Modified:
   rt/3.8/trunk/   (props changed)
   rt/3.8/trunk/lib/RT/CustomField.pm
   rt/3.8/trunk/lib/RT/CustomField_Overlay.pm
   rt/3.8/trunk/share/html/Admin/CustomFields/Modify.html

Log:
 r23357 at nyx:  kyoki | 2008-06-25 16:31:27 -0400
 RT-Ticket: 9197
 RT-Status: Resolved
 RT-Update: Correspond
 include-cf and link-cf links are now saved when creating customfields.


Modified: rt/3.8/trunk/lib/RT/CustomField.pm
==============================================================================
--- rt/3.8/trunk/lib/RT/CustomField.pm	(original)
+++ rt/3.8/trunk/lib/RT/CustomField.pm	Wed Jun 25 16:31:29 2008
@@ -120,8 +120,10 @@
                 SortOrder => '0',
                 LookupType => '',
                 Disabled => '0',
+                LinkToValue => '',
+                IncludeContentForValue => '',
 
-		  @_);
+                  @_);
     $self->SUPER::Create(
                          Name => $args{'Name'},
                          Type => $args{'Type'},
@@ -132,6 +134,8 @@
                          SortOrder => $args{'SortOrder'},
                          LookupType => $args{'LookupType'},
                          Disabled => $args{'Disabled'},
+                         LinkToValue => $args{'LinkToValue'},
+                         IncludeContentForValue => $args{'IncludeContentForValue'}
 );
 
 }

Modified: rt/3.8/trunk/lib/RT/CustomField_Overlay.pm
==============================================================================
--- rt/3.8/trunk/lib/RT/CustomField_Overlay.pm	(original)
+++ rt/3.8/trunk/lib/RT/CustomField_Overlay.pm	Wed Jun 25 16:31:29 2008
@@ -164,6 +164,8 @@
         Disabled    => 0,
         LookupType  => '',
         Repeated    => 0,
+        LinkValueTo => '',
+        IncludeContentForValue => '',
         @_,
     );
 
@@ -221,6 +223,14 @@
         Repeated    => $args{'Repeated'},
     );
 
+    if ( exists $args{'LinkValueTo'}) {
+	$self->SetLinkValueTo($args{'LinkValueTo'});
+    }
+
+    if ( exists $args{'IncludeContentForValue'}) {
+	$self->SetIncludeContentForValue($args{'IncludeContentForValue'});
+    }
+
     if ( exists $args{'ValuesClass'} ) {
         $self->SetValuesClass( $args{'ValuesClass'} );
     }

Modified: rt/3.8/trunk/share/html/Admin/CustomFields/Modify.html
==============================================================================
--- rt/3.8/trunk/share/html/Admin/CustomFields/Modify.html	(original)
+++ rt/3.8/trunk/share/html/Admin/CustomFields/Modify.html	Wed Jun 25 16:31:29 2008
@@ -145,6 +145,8 @@
             LookupType    => $LookupType,
             Description   => $Description,
             Pattern       => $Pattern,
+            LinkValueTo   => $LinkValueTo,
+            IncludeContentForValue => $IncludeContentForValue,
         );
         $m->comp( "/Elements/Error", Why => loc( "Could not create CustomField", $msg ) ) unless $val;
         push @results, $msg;
@@ -227,4 +229,6 @@
 $SetEnabled => undef
 $Enabled => 0
 $ValuesClass => 'RT::CustomFieldValues'
+$LinkValueTo => undef
+$IncludeContentForValue => undef
 </%ARGS>


More information about the Rt-commit mailing list