[otrs-cvs] otrs/Kernel/Modules CustomerTicketOverview.pm, 1.17, 1.18
"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-serv20210/Kernel/Modules
Modified Files:
CustomerTicketOverview.pm
Log Message:
Fixed bug#9132 - Button to create new ticket appears in Customer Interface although ticket creation is disabled.
Author: mn
Index: CustomerTicketOverview.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/Modules/CustomerTicketOverview.pm,v
retrieving revision 1.17
retrieving revision 1.18
diff -2 -u -d -r1.17 -r1.18
--- CustomerTicketOverview.pm 22 Nov 2012 08:55:26 -0000 1.17
+++ CustomerTicketOverview.pm 11 Feb 2013 10:43:29 -0000 1.18
@@ -1,5 +1,5 @@
# --
# Kernel/Modules/CustomerTicketOverview.pm - status for all open tickets
-# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
# --
# $Id$
@@ -256,4 +256,19 @@
Data => $CustomTexts,
);
+
+ # only show button, if frontend module for NewTicket is registered
+ # and button text is configured
+ if (
+ ref $Self->{ConfigObject}->Get('CustomerFrontend::Module')->{CustomerTicketMessage}
+ eq 'HASH'
+ && defined $Self->{ConfigObject}
+ ->Get('Ticket::Frontend::CustomerTicketOverviewCustomEmptyText')->{Button}
+ )
+ {
+ $Self->{LayoutObject}->Block(
+ Name => 'EmptyCustomButton',
+ Data => $CustomTexts,
+ );
+ }
}
else {
@@ -261,4 +276,15 @@
Name => 'EmptyDefault',
);
+
+ # only show button, if frontend module for NewTicket is registered
+ if (
+ ref $Self->{ConfigObject}->Get('CustomerFrontend::Module')->{CustomerTicketMessage}
+ eq 'HASH'
+ )
+ {
+ $Self->{LayoutObject}->Block(
+ Name => 'EmptyDefaultButton',
+ );
+ }
}
}
---------------------------------------------------------------------
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