[otrs-cvs] otrs/Kernel/Modules AgentTicketZoom.pm,1.196,1.197
"CVS commits notifications of OTRS.org" <[email protected]>
| Newsgroups | gmane.comp.otrs.cvs |
|---|---|
| Message-ID | <[email protected]> |
Comments:
Update of /home/cvs/otrs/Kernel/Modules
In directory lancelot:/tmp/cvs-serv27970/Kernel/Modules
Modified Files:
AgentTicketZoom.pm
Log Message:
Moved Phone Call Outbound and Inbound from Article menu to ticket menu in AgentTicketZoom.
Author: cr
Index: AgentTicketZoom.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/Modules/AgentTicketZoom.pm,v
retrieving revision 1.196
retrieving revision 1.197
diff -2 -u -d -r1.196 -r1.197
--- AgentTicketZoom.pm 11 Jan 2013 21:33:20 -0000 1.196
+++ AgentTicketZoom.pm 11 Jan 2013 23:50:23 -0000 1.197
@@ -2046,104 +2046,4 @@
}
- # check if phone link (outbound) should be shown
- if (
- $Self->{ConfigObject}->Get('Frontend::Module')->{AgentTicketPhoneOutbound}
- && (
- !defined $AclAction{AgentTicketPhoneOutbound}
- || $AclAction{AgentTicketPhoneOutbound}
- )
- )
- {
- my $Access = 1;
- my $Config = $Self->{ConfigObject}->Get('Ticket::Frontend::AgentTicketPhoneOutbound');
- if ( $Config->{Permission} ) {
- my $OK = $Self->{TicketObject}->TicketPermission(
- Type => $Config->{Permission},
- TicketID => $Ticket{TicketID},
- UserID => $Self->{UserID},
- LogNo => 1,
- );
- if ( !$OK ) {
- $Access = 0;
- }
- }
- if ( $Config->{RequiredLock} ) {
- my $Locked = $Self->{TicketObject}->TicketLockGet(
- TicketID => $Ticket{TicketID}
- );
- if ($Locked) {
- my $AccessOk = $Self->{TicketObject}->OwnerCheck(
- TicketID => $Ticket{TicketID},
- OwnerID => $Self->{UserID},
- );
- if ( !$AccessOk ) {
- $Access = 0;
- }
- }
- }
- if ($Access) {
- $Self->{LayoutObject}->Block(
- Name => 'ArticleMenu',
- Data => {
- %Ticket, %Article, %AclAction,
- Description => 'Phone Call Outbound',
- Name => 'Phone Call Outbound',
- Class => 'AsPopup PopupType_TicketAction',
- Link => 'Action=AgentTicketPhoneOutbound;TicketID=$Data{"TicketID"}'
- },
- );
- }
- }
-
- # check if phone link (inbound) should be shown
- if (
- $Self->{ConfigObject}->Get('Frontend::Module')->{AgentTicketPhoneInbound}
- && (
- !defined $AclAction{AgentTicketPhoneInbound}
- || $AclAction{AgentTicketPhoneInbound}
- )
- )
- {
- my $Access = 1;
- my $Config = $Self->{ConfigObject}->Get('Ticket::Frontend::AgentTicketPhoneInbound');
- if ( $Config->{Permission} ) {
- my $OK = $Self->{TicketObject}->TicketPermission(
- Type => $Config->{Permission},
- TicketID => $Ticket{TicketID},
- UserID => $Self->{UserID},
- LogNo => 1,
- );
- if ( !$OK ) {
- $Access = 0;
- }
- }
- if ( $Config->{RequiredLock} ) {
- my $Locked = $Self->{TicketObject}->TicketLockGet(
- TicketID => $Ticket{TicketID}
- );
- if ($Locked) {
- my $AccessOk = $Self->{TicketObject}->OwnerCheck(
- TicketID => $Ticket{TicketID},
- OwnerID => $Self->{UserID},
- );
- if ( !$AccessOk ) {
- $Access = 0;
- }
- }
- }
- if ($Access) {
- $Self->{LayoutObject}->Block(
- Name => 'ArticleMenu',
- Data => {
- %Ticket, %Article, %AclAction,
- Description => 'Phone Call Inbound',
- Name => 'Phone Call Inbound',
- Class => 'AsPopup PopupType_TicketAction',
- Link => 'Action=AgentTicketPhoneInbound;TicketID=$Data{"TicketID"}'
- },
- );
- }
- }
-
# check if split link should be shown
if (
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log