add bulk-merge action into bulk-action page

Dear Otrs users, I want to add bulk-merge action into bulk-action page. I have check out AgentTicketBulk.pm ver 1.18, and replace the ver 1.14 , and replace the dtl file AgentTicketBulk.dtl from ver 1.10 to 1.13 This not work properly. -- Jeffery ___ /\__\ "What is the world coming to?" \/__/

done,
edit AgentTicketBulk.dtl Add this,
<tr>
<td class="contentkey">$Text{"Merge to"}:</td>
<td class="contentvalue"> </td>
</tr>
edit AgentTicketBulk.pm Add this,
# set state
my $StateID = $Self->{ParamObject}->GetParam( Param =>
'StateID' ) || '';
my $State = $Self->{ParamObject}->GetParam( Param =>
'State' ) || '';
if ( $StateID || $State ) {
$Self->{TicketObject}->StateSet(
TicketID => $TicketID,
StateID => $StateID,
State => $State,
UserID => $Self->{UserID},
);
my %Ticket = $Self->{TicketObject}->TicketGet(
TicketID => $TicketID );
my %StateData =
$Self->{TicketObject}->{StateObject}->StateGet(
ID => $Ticket{StateID},
);
# should I set an unlock?
if ( $Ticket{StateType} =~ /^close/i ) {
$Self->{TicketObject}->LockSet(
TicketID => $TicketID,
Lock => 'unlock',
UserID => $Self->{UserID},
);
}
}
# merge
# merge to
my $MergeTo = $Self->{ParamObject}->GetParam( Param =>
'MergeTo' );
my $MainTicketID =
$Self->{TicketObject}->TicketIDLookup(
TicketNumber => $MergeTo,
);
if ( $MainTicketID ne $TicketID ) {
$Self->{TicketObject}->TicketMerge(
MainTicketID => $MainTicketID,
MergeTicketID => $TicketID,
UserID => $Self->{UserID},
);
}
# Should I unlock tickets at user request?
if ( $Self->{ParamObject}->GetParam( Param => 'Unlock' )
) {
$Self->{TicketObject}->LockSet(
TicketID => $TicketID,
Lock => 'unlock',
UserID => $Self->{UserID},
);
}
Next, need add bulk-action t0 search results..
On Tue, Dec 2, 2008 at 8:48 AM, Jeffery Chen Fan
Dear Otrs users,
I want to add bulk-merge action into bulk-action page. I have check out AgentTicketBulk.pm ver 1.18, and replace the ver 1.14 , and replace the dtl file AgentTicketBulk.dtl from ver 1.10 to 1.13 This not work properly.
-- Jeffery ___ /\__\ "What is the world coming to?" \/__/
-- Jeffery ___ /\__\ "What is the world coming to?" \/__/
participants (1)
-
Jeffery Chen Fan