Author: bklaas
Date: Fri Feb  8 14:52:41 2008
New Revision: 1873

URL: http://svn.slimdevices.com?rev=1873&root=Jive&view=rev
Log:
Bug: 7019
Description: avoid infinite request loop when count == 0

Modified:
    
branches/7.0/jive/src/pkg/jive/share/applets/SlimBrowser/SlimBrowserApplet.lua

Modified: 
branches/7.0/jive/src/pkg/jive/share/applets/SlimBrowser/SlimBrowserApplet.lua
URL: 
http://svn.slimdevices.com/branches/7.0/jive/src/pkg/jive/share/applets/SlimBrowser/SlimBrowserApplet.lua?rev=1873&root=Jive&r1=1872&r2=1873&view=diff
==============================================================================
--- 
branches/7.0/jive/src/pkg/jive/share/applets/SlimBrowser/SlimBrowserApplet.lua 
(original)
+++ 
branches/7.0/jive/src/pkg/jive/share/applets/SlimBrowser/SlimBrowserApplet.lua 
Fri Feb  8 14:52:41 2008
@@ -769,6 +769,11 @@
                        end
                        local textArea = Textarea("textarea", 
data.window.textArea)
                        step.window:addWidget(textArea)
+               -- avoid infinite request loop on count == 0
+               elseif step.menu and data and data.count and data.count == 0 
then
+                       -- this will render a blank menu, which is typically 
undesirable 
+                       -- but we don't want to reach the next clause
+                       -- count == 0 responses should not be typical
                elseif step.menu then
                        step.menu:setItems(step.db:menuItems(data))
 

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins

Reply via email to