[otrs-cvs] otrs/Kernel/System LinkObject.pm,1.67,1.68

"CVS commits notifications of OTRS.org" <[email protected]>
Newsgroups gmane.comp.otrs.cvs
Message-ID <[email protected]>
Comments:
Update of /home/cvs/otrs/Kernel/System
In directory lancelot:/tmp/cvs-serv12162/Kernel/System

Modified Files:
	LinkObject.pm 
Log Message:
Fixed bug #9054 - Link Object deletes all links under certain conditions.

Author: ub

Index: LinkObject.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/LinkObject.pm,v
retrieving revision 1.67
retrieving revision 1.68
diff -2 -u -d -r1.67 -r1.68
--- LinkObject.pm	20 Dec 2012 12:24:53 -0000	1.67
+++ LinkObject.pm	21 Jan 2013 15:04:09 -0000	1.68
@@ -1,5 +1,5 @@
 # --
 # Kernel/System/LinkObject.pm - to link objects
-# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
 # --
 # $Id$
@@ -747,8 +747,8 @@
         SQL => 'SELECT source_object_id, source_key, target_object_id, target_key, state_id '
             . 'FROM link_relation '
-            . 'WHERE ( source_object_id = ? AND source_key = ? '
+            . 'WHERE ((source_object_id = ? AND source_key = ? '
             . 'AND target_object_id = ? AND target_key = ? ) '
             . 'OR ( source_object_id = ? AND source_key = ? '
-            . 'AND target_object_id = ? AND target_key = ? ) '
+            . 'AND target_object_id = ? AND target_key = ? )) '
             . 'AND type_id = ? ',
         Bind => [
@@ -840,8 +840,8 @@
     return if !$Self->{DBObject}->Do(
         SQL => 'DELETE FROM link_relation '
-            . 'WHERE ( source_object_id = ? AND source_key = ? '
+            . 'WHERE (( source_object_id = ? AND source_key = ? '
             . 'AND target_object_id = ? AND target_key = ? ) '
             . 'OR ( source_object_id = ? AND source_key = ? '
-            . 'AND target_object_id = ? AND target_key = ? ) '
+            . 'AND target_object_id = ? AND target_key = ? )) '
             . 'AND type_id = ? ',
         Bind => [
@@ -1716,5 +1716,5 @@
         }
 
-        # check the state id
+        # check the type id
         if ( !$TypeID ) {
             $Self->{LogObject}->Log(
---------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.