fix to kb
diff --git a/knowledge_base/page/questions/questions.txt b/knowledge_base/page/questions/questions.txt
index d71225a..b45c7dd 100644
--- a/knowledge_base/page/questions/questions.txt
+++ b/knowledge_base/page/questions/questions.txt
@@ -15,7 +15,7 @@
'doctype': 'Page',
'module': 'Knowledge Base',
'name': '__common__',
- 'page_name': 'Questions',
+ 'page_name': 'questions',
'standard': 'Yes'
},
diff --git a/patches/patch.py b/patches/patch.py
index cd68b13..0eafef6 100644
--- a/patches/patch.py
+++ b/patches/patch.py
@@ -1,7 +1,7 @@
# REMEMBER to update this
# ========================
-last_patch = 337
+last_patch = 338
#-------------------------------------------
@@ -1373,3 +1373,7 @@
sp_acx[i+1] = '"'.join(sp_quot)
html = "acx=".join(sp_acx)
webnotes.conn.sql("""UPDATE tabItem SET description_html=%s WHERE name=%s""", (html, item))
+ elif patch_no == 338:
+ # update name of questions page
+ sql("update tabPage set name='questions' where name='Questions'")
+ sql("update tabPage set name='question-view' where name='Question View'")
\ No newline at end of file