Author: pbr
Date: 2007-11-12 16:43:49 -0800 (Mon, 12 Nov 2007)
New Revision: 7223

Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/data/LzHTTPDataProvider.lzs
Log:
Change 20071106-Philip-8 by [EMAIL PROTECTED] on 2007-11-06 13:04:03 EST
     in /cygdrive/f/laszlo/svn/src/svn/openlaszlo/trunk
     for http://svn.openlaszlo.org/openlaszlo/trunk

Summary:  Prevent error when trying to dynamically load dataset

New Features:

Bugs Fixed: LPP-3951

Technical Reviewer: hqm
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
This bug was fixed in legals but I never checked it in (approved by Henry on 
6/28/2007). If LzHTTPDataProvider.doRequest() is called on a local dataset, an 
error is generated in dhtml (and the tree disappears in swf). The solution is 
to check for a null src and return.

Tests:
Run test in LPP-3951. After patch, the tree does not disappear when you click 
the button, and no error is generated in dhtml.

Files:
M      WEB-INF/lps/lfc/data/LzHTTPDataProvider.lzs

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20071106-Philip-8.tar



Modified: openlaszlo/trunk/WEB-INF/lps/lfc/data/LzHTTPDataProvider.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/data/LzHTTPDataProvider.lzs        
2007-11-13 00:09:12 UTC (rev 7222)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/data/LzHTTPDataProvider.lzs        
2007-11-13 00:43:49 UTC (rev 7223)
@@ -76,6 +76,10 @@
      * @access private
      */
     function doRequest ( dreq ) {
+        // dreq.src can be null if the dataset is loaded from initialdata
+        if (!dreq.src)
+            return;
+
         //build request
         var proxied = dreq.proxied;
         // Check for previously created loader, we can reuse it


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to