From d4dcd2dfd739a8ae173e502cd0ffde24d8f27ce2 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Wed, 15 Jun 2011 10:39:45 +0530 Subject: [PATCH] set fix --- cgi-bin/webnotes/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgi-bin/webnotes/db.py b/cgi-bin/webnotes/db.py index 10939b79f9..1f9336c0f0 100644 --- a/cgi-bin/webnotes/db.py +++ b/cgi-bin/webnotes/db.py @@ -248,7 +248,7 @@ class Database: def set_value(self, dt, dn, field, val): from webnotes.utils import now if dn and dt!=dn: - self.sql("update `tab"+dt+"` set `"+field+"`=%s, modified=%s where name=%s", (val, dn, now())) + self.sql("update `tab"+dt+"` set `"+field+"`=%s, modified=%s where name=%s", (val, now(), dn)) else: if self.sql("select value from tabSingles where field=%s and doctype=%s", (field, dt)): self.sql("update tabSingles set value=%s where field=%s and doctype=%s", (val, field, dt))