Author: titmuss
Date: Fri Feb 8 16:01:42 2008
New Revision: 1877
URL: http://svn.slimdevices.com?rev=1877&root=Jive&view=rev
Log:
[EMAIL PROTECTED] (orig r1873): bklaas | 2008-02-08 22:52:41 +0000
Bug: 7019
Description: avoid infinite request loop when count == 0
Modified:
trunk/ (props changed)
trunk/jive/src/pkg/jive/share/applets/SlimBrowser/SlimBrowserApplet.lua
Propchange: trunk/
------------------------------------------------------------------------------
--- svk:merge (original)
+++ svk:merge Fri Feb 8 16:01:42 2008
@@ -1,3 +1,3 @@
-bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/branches/7.0:1871
+bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/branches/7.0:1873
bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/branches/SN:1083
bbe22326-0783-4b3a-ac2b-7ab96b24c8d9:/branches/scrolling:1378
Modified:
trunk/jive/src/pkg/jive/share/applets/SlimBrowser/SlimBrowserApplet.lua
URL:
http://svn.slimdevices.com/trunk/jive/src/pkg/jive/share/applets/SlimBrowser/SlimBrowserApplet.lua?rev=1877&root=Jive&r1=1876&r2=1877&view=diff
==============================================================================
--- trunk/jive/src/pkg/jive/share/applets/SlimBrowser/SlimBrowserApplet.lua
(original)
+++ trunk/jive/src/pkg/jive/share/applets/SlimBrowser/SlimBrowserApplet.lua Fri
Feb 8 16:01:42 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