[Rt-commit] r4316 - in rt/branches/3.7-EXPERIMENTAL: . html/Search

ruz at bestpractical.com ruz at bestpractical.com
Sat Dec 17 21:10:31 EST 2005


Author: ruz
Date: Sat Dec 17 21:10:31 2005
New Revision: 4316

Modified:
   rt/branches/3.7-EXPERIMENTAL/   (props changed)
   rt/branches/3.7-EXPERIMENTAL/html/Search/Build.html
Log:
 r1532 at cubic-pc:  cubic | 2005-12-18 03:06:57 +0300
  r1467 at cubic-pc:  cubic | 2005-12-14 22:43:01 +0300
  * don't delete node if it has no parent
 


Modified: rt/branches/3.7-EXPERIMENTAL/html/Search/Build.html
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Search/Build.html	(original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Search/Build.html	Sat Dec 17 21:10:31 2005
@@ -440,7 +440,9 @@
 elsif ( $ARGS{"DeleteClause"} ) {
     if (@current_values) {
         while( my $node = shift @current_values ) {
-            $node->getParent->removeChild($node);
+            my $parent = $node->getParent;
+            next unless $parent;
+            $parent->removeChild($node);
             $node->DESTROY;
         }
     }


More information about the Rt-commit mailing list