[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form - vocabularywidget.py:1.15

Fred L. Drake, Jr. fred@zope.com
Thu, 29 May 2003 17:17:38 -0400


Update of /cvs-repository/Zope3/src/zope/app/browser/form
In directory cvs.zope.org:/tmp/cvs-serv24085

Modified Files:
	vocabularywidget.py 
Log Message:
Make the ADD_DONE action clear the batching index so we don't perform
the search again until the user has requested it.


=== Zope3/src/zope/app/browser/form/vocabularywidget.py 1.14 => 1.15 ===
--- Zope3/src/zope/app/browser/form/vocabularywidget.py:1.14	Thu May 29 16:23:16 2003
+++ Zope3/src/zope/app/browser/form/vocabularywidget.py	Thu May 29 17:17:38 2003
@@ -571,7 +571,7 @@
     def performQueryAction(self, value):
         if self.action == ADD_DONE:
             value = self.addSelections(value)
-            self.query_index = 0
+            self.query_index = None
             self.query_selections = []
         elif self.action == ADD_MORE:
             value = self.addSelections(value)