[note] [fix] strip invalid characters from title and set it as the name of the note

This commit is contained in:
Anand Doshi
2013-05-27 12:25:28 +05:30
parent d9384c0583
commit 5dfba486a6
3 changed files with 8 additions and 2 deletions

View File

@@ -2,6 +2,8 @@ import webnotes
def execute():
webnotes.reload_doc("utilities", "doctype", "note")
webnotes.reload_doc("utilities", "doctype", "note_user")
for question in webnotes.conn.sql("""select * from tabQuestion""", as_dict=True):
name = question.question[:180]
if webnotes.conn.exists("Note", name):