[Rt-devel] Re: small update to rt-crontool

Rudolph Pereira rudolph at usyd.edu.au
Sun Sep 5 19:55:16 EDT 2004


Apologies for responding to myself.

I have attached an updated patch that also includes the changes to make
rt-crontool actually work with templates, which we also require (and
without which my previous patch is pretty useless)

This change was actually part of (i.e included as an attachment, iirc)
the request/issue I referred to previously,
but I include it here with my other change in diff/patch format for ease
of application.

Thanks
-------------- next part --------------
--- /tmp/request-tracker3-3.0.11/bin/rt-crontool.in	2004-01-03 09:55:55.000000000 +1100
+++ bin/rt-crontool.in	2004-09-03 13:50:04.000000000 +1000
@@ -26,7 +26,7 @@
 use strict;
 use Carp;
 
-use lib ("@RT_LIB_PATH@", "@LOCAL_LIB_PATH@");
+use lib ("@LOCAL_LIB_PATH@","@RT_LIB_PATH@");
 
 package RT;
 
@@ -78,7 +78,7 @@
 # load template if specified
 my $template_obj;
 if ($template_id) {
-    $template_obj = RT::Template->new($RT::Nobody);
+    $template_obj = RT::Template->new($CurrentUser);
     $template_obj->LoadById($template_id);
 }
 


More information about the Rt-devel mailing list