Dear RT hackers,
does anyone know how to disable all scrips inside a script, only for this script
(such as a bulk insert script) ?
this must not affect running RT, only API calls inside this script.
Dear RT hackers,
does anyone know how to disable all scrips inside a script, only for this script
(such as a bulk insert script) ?
this must not affect running RT, only API calls inside this script.
Dear RT hackers,
does anyone know how to disable all scrips inside a script, only for this script
(such as a bulk insert script) ?this must not affect running RT, only API calls inside this script.
This seems to works (I also disable Lifecycle checking because I’m doing
a batch import of old tickets from another app):
use RT::Lifecycle;
*RT::Lifecycle::IsValid = sub {
return 1;
};
*RT::Lifecycle::IsTransition = sub {
return 1;
};
use RT::Transaction;
my $old_create = &RT::Transaction::Create;
*RT::Transaction::Create = sub {
my $self = shift;
my %args = @_;
$args{ActivateScrips} = 0;
return $old_create->($self, %args);
};
Easter-eggs Spécialiste GNU/Linux
44-46 rue de l’Ouest - 75014 Paris - France - Métro Gaité
Phone: +33 (0) 1 43 35 00 37 - Fax: +33 (0) 1 43 35 00 76
mailto:elacour@easter-eggs.com - http://www.easter-eggs.com