[otrs-cvs] CVS: Advisory/Kernel/Output/HTML ArticleAttachmentDAFImport.pm,1.3,1.4

cvs-log at otrs.org cvs-log at otrs.org
Tue Dec 5 11:56:14 CET 2006


Update of /home/cvs/Advisory/Kernel/Output/HTML
In directory lancelot:/tmp/cvs-serv23998/Kernel/Output/HTML

Modified Files:
	ArticleAttachmentDAFImport.pm 
Log Message:
changes and improvements for a better branch

Index: ArticleAttachmentDAFImport.pm
===================================================================
RCS file: /home/cvs/Advisory/Kernel/Output/HTML/ArticleAttachmentDAFImport.pm,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** ArticleAttachmentDAFImport.pm	28 Jun 2006 12:53:48 -0000	1.3
--- ArticleAttachmentDAFImport.pm	5 Dec 2006 10:56:12 -0000	1.4
***************
*** 1,5 ****
  # --
  # Kernel/Output/HTML/ArticleAttachmentDAFImport.pm
! # Copyright (C) 2003-2006 OTRS GmbH, http://www.otrs.com/
  # --
  # $Id$
--- 1,5 ----
  # --
  # Kernel/Output/HTML/ArticleAttachmentDAFImport.pm
! # Copyright (C) 2003-2006 OTRS GmbH, http://otrs.com/
  # --
  # $Id$
***************
*** 19,23 ****
  $VERSION =~ s/^\$.*:\W(.*)\W.+?$/$1/;
  
- # --
  sub new {
      my $Type = shift;
--- 19,22 ----
***************
*** 37,41 ****
      return $Self;
  }
! # --
  sub Run {
      my $Self = shift;
--- 36,40 ----
      return $Self;
  }
! 
  sub Run {
      my $Self = shift;
***************
*** 43,50 ****
      # check needed stuff
      foreach (qw(File Article)) {
!       if (!$Param{$_}) {
!         $Self->{LogObject}->Log(Priority => 'error', Message => "Need $_!");
!         return;
!       }
      }
      # check if file
--- 42,49 ----
      # check needed stuff
      foreach (qw(File Article)) {
!         if (!$Param{$_}) {
!             $Self->{LogObject}->Log(Priority => 'error', Message => "Need $_!");
!             return;
!         }
      }
      # check if file
***************
*** 79,83 ****
                      %{$Param{File}},
                      Action => 'Import-DAF',
!                     Link => "\$Env{\"Baselink\"}Action=AgentAdvisory&Subaction=Import&TicketID=$Self->{TicketID}&ArticleID=$Param{Article}->{ArticleID}&FileID=$Param{File}->{FileID}",
                      Image => 'import-s.png',
                  );
--- 78,84 ----
                      %{$Param{File}},
                      Action => 'Import-DAF',
!                     Link => "\$Env{\"Baselink\"}Action=AgentAdvisory&" .
!                         "Subaction=Import&TicketID=$Self->{TicketID}&" .
!                         "ArticleID=$Param{Article}->{ArticleID}&FileID=$Param{File}->{FileID}",
                      Image => 'import-s.png',
                  );
***************
*** 87,90 ****
      return ();
  }
! # --
  1;
--- 88,91 ----
      return ();
  }
! 
  1;



More information about the cvs-log mailing list