mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
fix to blog and wnf backup does not backup files
This commit is contained in:
@@ -29,7 +29,8 @@ class DocType:
|
||||
self.doc.name = page_name(self.doc.title)
|
||||
|
||||
def validate(self):
|
||||
self.doc.blog_intro = self.doc.blog_intro[:140]
|
||||
if self.doc.blog_intro:
|
||||
self.doc.blog_intro = self.doc.blog_intro[:140]
|
||||
|
||||
def on_update(self):
|
||||
from website.utils import update_page_name
|
||||
|
||||
@@ -13,6 +13,6 @@ class DocType:
|
||||
for blog in webnotes.conn.sql_list("""select name from tabBlog where owner=%s
|
||||
and ifnull(blogger,'')=''""", self.doc.profile):
|
||||
b = webnotes.bean("Blog", blog)
|
||||
b.blogger = self.doc.name
|
||||
b.doc.blogger = self.doc.name
|
||||
b.save()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user