[Rt-commit] rt branch, 4.0/create-tickets-bad-template-warning, created. rt-4.0.5-60-g8139abf

Kevin Falcone falcone at bestpractical.com
Wed Feb 8 19:52:36 EST 2012


The branch, 4.0/create-tickets-bad-template-warning has been created
        at  8139abf0856707d5d70f8fa41b65cc33372a95cb (commit)

- Log -----------------------------------------------------------------
commit 8139abf0856707d5d70f8fa41b65cc33372a95cb
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Wed Feb 8 19:45:18 2012 -0500

    If the CreateTickets template isn't valid, tell the admin
    
    The way this was coded, if you screw up your 3 equals or don't have a
    tsv/csv template, nothing silently happens.

diff --git a/lib/RT/Action/CreateTickets.pm b/lib/RT/Action/CreateTickets.pm
index 19aa134..7b2b541 100644
--- a/lib/RT/Action/CreateTickets.pm
+++ b/lib/RT/Action/CreateTickets.pm
@@ -557,7 +557,8 @@ sub Parse {
         $self->_ParseMultilineTemplate(%args);
     } elsif ( $args{'Content'} =~ /(?:\t|,)/i ) {
         $self->_ParseXSVTemplate(%args);
-
+    } else {
+        RT->Logger->error("Invalid Template Content (do you have an initial === or a csv/tsv template?) - unable to parse: $args{Content}");
     }
 }
 

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


More information about the Rt-commit mailing list