mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-29 18:04:46 +00:00
[note] [fix] strip invalid characters from title and set it as the name of the note
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user