[otrs-cvs] ImportExport/Kernel/System ImportExport.pm,1.10,1.11

cvs-log at otrs.org cvs-log at otrs.org
Tue Feb 5 11:29:06 GMT 2008


Comments:
Update of /home/cvs/ImportExport/Kernel/System
In directory lancelot:/tmp/cvs-serv11681/Kernel/System

Modified Files:
	ImportExport.pm 
Log Message:
Improved import export mechanism.

Author: mh

Index: ImportExport.pm
===================================================================
RCS file: /home/cvs/ImportExport/Kernel/System/ImportExport.pm,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** ImportExport.pm	4 Feb 2008 19:53:32 -0000	1.10
--- ImportExport.pm	5 Feb 2008 11:29:01 -0000	1.11
***************
*** 112,116 ****
          SQL => "SELECT id FROM imexport_template WHERE "
              . "imexport_object = '$Param{Object}' "
!             . "ORDER BY name",
      );
  
--- 112,116 ----
          SQL => "SELECT id FROM imexport_template WHERE "
              . "imexport_object = '$Param{Object}' "
!             . "ORDER BY id",
      );
  
***************
*** 1016,1020 ****
      my $NewPosition = 0;
      while ( my @Row = $Self->{DBObject}->FetchrowArray() ) {
!         $NewPosition = $Row[0] + 1;
      }
  
--- 1016,1024 ----
      my $NewPosition = 0;
      while ( my @Row = $Self->{DBObject}->FetchrowArray() ) {
! 
!         if ( defined $Row[0] ) {
!             $NewPosition = $Row[0];
!             $NewPosition++;
!         }
      }
  


More information about the cvs-log mailing list