[Jifty-commit] r4181 - in apps/CASPlus/trunk: lib

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Tue Oct 2 12:03:10 EDT 2007


Author: sterling
Date: Tue Oct  2 12:03:09 2007
New Revision: 4181

Modified:
   apps/CASPlus/trunk/   (props changed)
   apps/CASPlus/trunk/lib/CASPlus.pm

Log:
 r12772 at dynpc145:  andrew | 2007-10-02 10:26:26 -0500
 Allow for the creation of custom types of tickets for custom modifications.


Modified: apps/CASPlus/trunk/lib/CASPlus.pm
==============================================================================
--- apps/CASPlus/trunk/lib/CASPlus.pm	(original)
+++ apps/CASPlus/trunk/lib/CASPlus.pm	Tue Oct  2 12:03:09 2007
@@ -124,7 +124,13 @@
         'A' .. 'Z', 'a' .. 'z', '0' .. '9', '-' 
     ];
 
-    for my $ticket_type (qw/ ST PT PGT PGTIOU LT TGC /) {
+    my @ticket_types = qw/ ST PT PGT PGTIOU LT TGC /;
+    for my $ticket_type (keys %{ Jifty->config->app('Tickets') }) {
+        push @ticket_types, $ticket_type
+            unless grep { $_ eq $ticket_type } @ticket_types;
+    }
+
+    for my $ticket_type (@ticket_types) {
         my %custom   = %{ Jifty->config->app('Tickets')->{$ticket_type} || {} };
 
         Jifty->config->app('Tickets')->{$ticket_type} 


More information about the Jifty-commit mailing list