replace createLocal in Client script only
diff --git a/patches/december_2012/replace_createlocal.py b/patches/december_2012/replace_createlocal.py
index b37ba6b..c6f4bae 100644
--- a/patches/december_2012/replace_createlocal.py
+++ b/patches/december_2012/replace_createlocal.py
@@ -1,4 +1,5 @@
def execute():
import webnotes
webnotes.conn.sql("""update `tabCustom Script`
- set script = replace(script, 'createLocal', 'wn.model.make_new_doc_and_get_name')""")
\ No newline at end of file
+ set script = replace(script, 'createLocal', 'wn.model.make_new_doc_and_get_name')
+ where script_type='Client'""")
\ No newline at end of file