[Kimchi-devel] [PATCH] Fix typo while processing request data

Aline Manera alinefm at linux.vnet.ibm.com
Fri Apr 11 20:47:53 UTC 2014


From: Aline Manera <alinefm at br.ibm.com>

While trying to create multiple templates we got an error:

ReferenceError: result is not defined
    result[key]=tmpArray;

Fix it.

Signed-off-by: Aline Manera <alinefm at br.ibm.com>
---
 ui/js/src/kimchi.object.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui/js/src/kimchi.object.js b/ui/js/src/kimchi.object.js
index 3f2ccb9..57ec8d7 100644
--- a/ui/js/src/kimchi.object.js
+++ b/ui/js/src/kimchi.object.js
@@ -62,7 +62,7 @@ Object.defineProperty(Object.prototype, "setDeepValue", {
                     var tmpArray=[]
                     tmpArray.push(this[key]);
                     tmpArray.push(val);
-                    result[key]=tmpArray;
+                    this[key]=tmpArray;
                 }
             }
             else {
-- 
1.7.10.4




More information about the Kimchi-devel mailing list