dabo Commit
Revision 4621
Date: 2008-10-28 18:56:26 -0700 (Tue, 28 Oct 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4621

Changed:
U   trunk/dabo/biz/dBizobj.py

Log:
Fixed a bug that prevented child bizobjs from being able to consistently filter 
their record set.


Diff:
Modified: trunk/dabo/biz/dBizobj.py
===================================================================
--- trunk/dabo/biz/dBizobj.py   2008-10-28 13:28:06 UTC (rev 4620)
+++ trunk/dabo/biz/dBizobj.py   2008-10-29 01:56:26 UTC (rev 4621)
@@ -881,6 +881,7 @@
                there is no parent record, there cannot be any child records 
saved yet, 
                so an empty query       is built.
                """
+               currWhere = self.getWhereClause()
                if self.DataSource and self.LinkField and self.Parent:
                        if self.Parent.RowCount == 0:
                                # Parent is new and not yet saved, so we cannot 
have child records yet.
@@ -898,6 +899,7 @@
                                        linkField = linkFieldParts[1]
                                filtExpr = " %s.%s = %s " % (dataSource, 
linkField, val)
                        self._CurrentCursor.setChildFilterClause(filtExpr)
+               self.setWhereClause(currWhere)
 
 
        def getParentLinkValue(self):




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to