[otrs-cvs] FAQ/Kernel/Modules AgentFAQZoom.pm,1.37,1.38

"CVS commits notifications of OTRS.org" <[email protected]> Wed, 12 Jun 2013 18:13:02 +0000
Newsgroups gmane.comp.otrs.cvs
Message-ID <[email protected]>
Comments:
Update of /home/cvs/FAQ/Kernel/Modules
In directory lancelot:/tmp/cvs-serv4748/Kernel/Modules

Modified Files:
	AgentFAQZoom.pm 
Log Message:
Added Insert Full FAQ (Text Images and Attachments) feature into tickets.

Author: cr

Index: AgentFAQZoom.pm
===================================================================
RCS file: /home/cvs/FAQ/Kernel/Modules/AgentFAQZoom.pm,v
retrieving revision 1.37
retrieving revision 1.38
diff -2 -u -d -r1.37 -r1.38
--- AgentFAQZoom.pm	25 Apr 2013 02:27:04 -0000	1.37
+++ AgentFAQZoom.pm	12 Jun 2013 18:12:57 -0000	1.38
@@ -600,8 +600,21 @@
         # show "Insert Text" button
         if ( $TicketComposeConfig->{ShowInsertTextButton} ) {
-            $Self->{LayoutObject}->Block(
-                Name => 'InsertText',
-                Data => {},
-            );
+            if (
+                defined $TicketComposeConfig->{InsertMethod}
+                && $TicketComposeConfig->{InsertMethod} eq 'Full'
+                )
+            {
+                $Self->{LayoutObject}->Block(
+                    Name => 'InsertFull',
+                    Data => {},
+                );
+            }
+            else {
+                $Self->{LayoutObject}->Block(
+                    Name => 'InsertText',
+                    Data => {},
+                );
+            }
+
             $ShowOrBlock = 1;
         }
@@ -632,8 +645,20 @@
             # show "Insert Text and Link" button
             if ( $TicketComposeConfig->{ShowInsertTextAndLinkButton} ) {
-                $Self->{LayoutObject}->Block(
-                    Name => 'InsertBoth',
-                    Data => {},
-                );
+                if (
+                    defined $TicketComposeConfig->{InsertMethod}
+                    && $TicketComposeConfig->{InsertMethod} eq 'Full'
+                    )
+                {
+                    $Self->{LayoutObject}->Block(
+                        Name => 'InsertFullAndLink',
+                        Data => {},
+                    );
+                }
+                else {
+                    $Self->{LayoutObject}->Block(
+                        Name => 'InsertTextAndLink',
+                        Data => {},
+                    );
+                }
                 $ShowOrBlock = 1
             }
---------------------------------------------------------------------
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