<& /Elements/Header, Title => loc('Modify recurrence for #[_1]', $TicketObj->Id) &> <& /Elements/Tabs &> <& /Elements/ListActions, actions => \@results &> <&| /Widgets/TitleBox,title => loc('Modify recurrence for ticket # [_1]', $TicketObj->Id), class=> 'ticket-info-repeat' &> <& Elements/EditRecurrence, Ticket => $TicketObj, ARGSRef => $ARGSRef &> <& /Elements/Submit, Name => 'SubmitTicket', Label => loc('Save Changes') &> <%INIT> my $TicketObj = LoadTicket($id); my @results; if ( $ARGS{SubmitTicket} ) { my ( $ret, $message ) = RT::Extension::RepeatTicket::SetRepeatAttribute( $TicketObj, %ARGS ); $ARGSRef = \%ARGS if not $ret; # Save params on failure push @results, $message; } <%ARGS> $id => undef $ARGSRef => undef