Author: tridge
Date: 2005-11-02 00:59:01 +0000 (Wed, 02 Nov 2005)
New Revision: 11456

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11456

Log:

fixed a ejs parser bug for delete() statements


Modified:
   branches/SAMBA_4_0/source/lib/appweb/ejs/ejsParser.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/appweb/ejs/ejsParser.c
===================================================================
--- branches/SAMBA_4_0/source/lib/appweb/ejs/ejsParser.c        2005-11-02 
00:37:49 UTC (rev 11455)
+++ branches/SAMBA_4_0/source/lib/appweb/ejs/ejsParser.c        2005-11-02 
00:59:01 UTC (rev 11456)
@@ -312,7 +312,9 @@
                                        flags | EJS_FLAGS_DELETE) != 
EJS_STATE_EXPR_DONE) {
                                goto error;
                        }
-                       mprDeleteProperty(ep->currentObj, 
ep->currentProperty->name);
+                       if (flags & EJS_FLAGS_EXE) {
+                               mprDeleteProperty(ep->currentObj, 
ep->currentProperty->name);
+                       }
                        done++;
                        break;
 

Reply via email to