[Rt-commit] rt branch, create-action, updated. 80aefd2ada4a21788bcc7c1d114b72c996b77d63

sartak at bestpractical.com sartak at bestpractical.com
Mon Nov 9 17:07:28 EST 2009


The branch, create-action has been updated
       via  80aefd2ada4a21788bcc7c1d114b72c996b77d63 (commit)
      from  8c8cef0544422cdef377504b4325bedf1ae2d893 (commit)

Summary of changes:
 lib/RT/Model/Ticket.pm |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit 80aefd2ada4a21788bcc7c1d114b72c996b77d63
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Mon Nov 9 17:07:09 2009 -0500

    custom_field-n -> cf_n (to make it easier to deal with actions)

diff --git a/lib/RT/Model/Ticket.pm b/lib/RT/Model/Ticket.pm
index d8f2c94..f04cbf0 100755
--- a/lib/RT/Model/Ticket.pm
+++ b/lib/RT/Model/Ticket.pm
@@ -360,7 +360,7 @@ Arguments: ARGS is a hash of named parameters.  Valid parameters are:
   starts -- an ISO date describing the ticket\'s start date and time in GMT
   due -- an ISO date describing the ticket\'s due date and time in GMT
   mime_obj -- a MIME::Entity object with the content of the initial ticket request.
-  custom_field-<n> -- a scalar or array of values for the customfield with the id <n>
+  cf_<n> -- a scalar or array of values for the customfield with the id <n>
 
 Ticket links can be set up during create by passing the link type as a hask key and
 the ticket id to be linked to as a value (or a URI when linking to other objects).
@@ -716,7 +716,7 @@ sub create {
     # {{{ Add all the custom fields
 
     foreach my $arg ( keys %args ) {
-        next unless $arg =~ /^custom_field-(\d+)$/i;
+        next unless $arg =~ /^cf_(\d+)$/i;
         my $cfid = $1;
 
         foreach my $value (

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


More information about the Rt-commit mailing list