Fix error when searching accross project. Collection of result wasn't initialized and was failing in case some CTN was returning no result.
authorEdouard Tisserant
Fri, 22 Mar 2019 14:00:35 +0100
changeset 2552 46a1e8d1e92c
parent 2551 245644bfcd24
child 2553 4b967831374f
child 2558 c9d16163f981
Fix error when searching accross project. Collection of result wasn't initialized and was failing in case some CTN was returning no result.
ConfigTreeNode.py
--- a/ConfigTreeNode.py	Fri Mar 22 13:45:19 2019 +0100
+++ b/ConfigTreeNode.py	Fri Mar 22 14:00:35 2019 +0100
@@ -127,7 +127,7 @@
         # TODO match config's fields name and fields contents
         return reduce(add, [
             CTNChild.CTNSearch(criteria)
-            for CTNChild in self.IterChildren()])
+            for CTNChild in self.IterChildren()],[])
 
     def GetIconName(self):
         return None