[Rt-commit] r20053 - rtir/2.5/trunk

sunnavy at bestpractical.com sunnavy at bestpractical.com
Thu Jun 25 04:39:36 EDT 2009


Author: sunnavy
Date: Thu Jun 25 04:39:36 2009
New Revision: 20053

Modified:
   rtir/2.5/trunk/TODO.switch_custom_fields_to_generic_RT_methods

Log:
make default values todo done

Modified: rtir/2.5/trunk/TODO.switch_custom_fields_to_generic_RT_methods
==============================================================================
--- rtir/2.5/trunk/TODO.switch_custom_fields_to_generic_RT_methods	(original)
+++ rtir/2.5/trunk/TODO.switch_custom_fields_to_generic_RT_methods	Thu Jun 25 04:39:36 2009
@@ -13,6 +13,30 @@
 * Constituency has special treating on edit depending on constituency propagation mode
 ** These two custom fields are still massaged via callback and RTIR has special editor
 
+Implemented changes:
+
+* RTIR's custom fields are renamed, no more '_RTIR_' prefix. As well some CFs had two
+  word names, spaces have been added. Handled in upgrade script.
+
+* Autoreply and BlockRemoved templates in blocks queue need changes. Block that adds
+  CF values to the mail should be:
+
+    { my $output = "";
+      my @mailfields = ( 'IP', 'Netmask', 'Port', 'Where Blocked' );
+
+      my $CustomFields = $Ticket->QueueObj->TicketCustomFields;
+      while ( my $CustomField = $CustomFields->Next ) {
+        my $name = $CustomField->Name;
+        next unless grep lc $_ eq lc $name, @mailfields;
+
+        my $Values = $Ticket->CustomFieldValues( $CustomField->Id );
+        while ( my $Value = $Values->Next ) {
+          $output .= $name .": ". $Value->Content ."\n";
+        }
+      }
+      return $output;
+    }
+
 * Default values:
 ** Reports/SLA/OnCreate: RT::IR::DefaultSLA()
 ** Reports/How Reported/OnCreate: $ARGS{'HowReported-Value'} || RT->Config->Get('_RTIR_HowReported_default')
@@ -39,28 +63,3 @@
 }
 $ip_default ||= RT->Config->Get('_RTIR_IP_default') || '';
 
-
-Implemented changes:
-
-* RTIR's custom fields are renamed, no more '_RTIR_' prefix. As well some CFs had two
-  word names, spaces have been added. Handled in upgrade script.
-
-* Autoreply and BlockRemoved templates in blocks queue need changes. Block that adds
-  CF values to the mail should be:
-
-    { my $output = "";
-      my @mailfields = ( 'IP', 'Netmask', 'Port', 'Where Blocked' );
-
-      my $CustomFields = $Ticket->QueueObj->TicketCustomFields;
-      while ( my $CustomField = $CustomFields->Next ) {
-        my $name = $CustomField->Name;
-        next unless grep lc $_ eq lc $name, @mailfields;
-
-        my $Values = $Ticket->CustomFieldValues( $CustomField->Id );
-        while ( my $Value = $Values->Next ) {
-          $output .= $name .": ". $Value->Content ."\n";
-        }
-      }
-      return $output;
-    }
-


More information about the Rt-commit mailing list