<div dir="ltr">Hello,<div><br></div><div>I try to use the following cron task :</div><div><br></div><div>/opt/rt4/bin/rt-crontool \</div><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>--search RT::Search::FromSQL \</div>
<div>--search-arg "Created < '1 day ago' AND (Status = 'new')  "  \</div><div>--action RT::Action::NotifyAsComment \</div><div>--action-arg 'OtherRecipients' </div><div>--template 'my_nice_template'<br>
</div><div><br></div></blockquote>but nothing is done (no comment and no notification), because RT complains :</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
[critical]: Can't call method "CreatorObj" on an undefined value at /opt/rt4/bin/../lib/RT/Action/Notify.pm line 134. (/opt/rt4/bin/../lib/RT.pm:400)</blockquote><div><br></div><div>I look at  "/opt/rt4/bin/../lib/RT/Action/Notify.pm line 134" and i see :</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">  my $creatorObj = $self->TransactionObj->CreatorObj;<br>
</blockquote><div><br></div><div> </div><div>So, does anybody knows :</div><div>-> how to use rt-crontool with "--action RT::Action::NotifyAsComment",</div><div>-> or how to specify the default RT system user in the Notify.pm script</div>
<div>something like : </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">eval( my $creatorObj = $self->TransactionObj->CreatorObj) || my $creatorObj = <RT_DEFAULT_USER_OBJ>;</blockquote>
<div><br></div><div>Thank you for any suggestion ! </div><div><br></div><div>Eric</div></div>