Преглед на файлове

Merge pull request #445 from nabinhait/hotfix

Minor fixes
version-14
Nabin Hait преди 11 години
родител
ревизия
b98d711935
променени са 2 файла, в които са добавени 5 реда и са изтрити 2 реда
  1. +4
    -1
      webnotes/utils/email_lib/receive.py
  2. +1
    -1
      webnotes/utils/nestedset.py

+ 4
- 1
webnotes/utils/email_lib/receive.py Целия файл

@@ -52,7 +52,10 @@ class IncomingMail:
else: else:
# assume that the encoding is utf-8 # assume that the encoding is utf-8
self.subject = self.subject.decode("utf-8") self.subject = self.subject.decode("utf-8")

if not self.subject:
self.subject = "No Subject"
def set_content_and_type(self): def set_content_and_type(self):
self.content, self.content_type = '[Blank Email]', 'text/plain' self.content, self.content_type = '[Blank Email]', 'text/plain'
if self.text_content: if self.text_content:


+ 1
- 1
webnotes/utils/nestedset.py Целия файл

@@ -189,7 +189,7 @@ class DocTypeNestedSet(object):
self.doc.fields[self.nsm_parent_field] = "" self.doc.fields[self.nsm_parent_field] = ""
update_nsm(self) update_nsm(self)
def before_rename(self, newdn, olddn, merge=False, group_fname="is_group"):
def before_rename(self, olddn, newdn, merge=False, group_fname="is_group"):
if merge: if merge:
is_group = webnotes.conn.get_value(self.doc.doctype, newdn, group_fname) is_group = webnotes.conn.get_value(self.doc.doctype, newdn, group_fname)
if self.doc.fields[group_fname] != is_group: if self.doc.fields[group_fname] != is_group:


Зареждане…
Отказ
Запис