Author: jcrowley
Date: 2007-11-05 06:22:06 -0800 (Mon, 05 Nov 2007)
New Revision: 7130

Modified:
   openlaszlo/trunk/lps/components/base/basedatacombobox.lzx
Log:
Change 20071105-jcrowley-M by [EMAIL PROTECTED] on 2007-11-05 06:28:08 EST
    in /Users/jcrowley/src/svn/openlaszlo/trunk-a
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: ant runlzunit fails

New Features:

Bugs Fixed: LPP-4968 - ant runlzunit fails

Technical Reviewer: pbr
QA Reviewer: max
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details: This was failing because the test for
        basedatacombobox was failing in DHTML
        because basedatacombobox wasn't checking
        to make sure defaulttext existed before
        trying to access it.

Tests: ant runlzunit - note that all the tests
        pass, and the build is successful.



Modified: openlaszlo/trunk/lps/components/base/basedatacombobox.lzx
===================================================================
--- openlaszlo/trunk/lps/components/base/basedatacombobox.lzx   2007-11-05 
14:07:43 UTC (rev 7129)
+++ openlaszlo/trunk/lps/components/base/basedatacombobox.lzx   2007-11-05 
14:22:06 UTC (rev 7130)
@@ -197,7 +197,7 @@
 
             var t = dp.xpathQuery(this.textdatapath);
             // if t is null, use default text (if it exists)
-            if( ( t == null || t.length == 0 ) && this.defaulttext['length'] > 
0 )
+            if( ( t == null || t.length == 0 ) && this.defaulttext && 
this.defaulttext['length'] > 0 )
                t = this.defaulttext;
 
             if ( this._cbtext && (this.statictext == null) ) {


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

Reply via email to