fix to blog and wnf backup does not backup files
This commit is contained in:
parent
981db7b561
commit
177226616a
@ -97,7 +97,7 @@ class DocType:
|
||||
self.create_email_digest()
|
||||
|
||||
webnotes.clear_cache()
|
||||
msgprint("Company setup is complete")
|
||||
msgprint("Company setup is complete. Please refresh the page before continuing.")
|
||||
|
||||
import webnotes.utils
|
||||
user_fullname = (args.get('first_name') or '') + (args.get('last_name')
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user