Merge branch 'master' into develop

This commit is contained in:
mbauskar 2017-06-15 13:27:13 +05:30
commit 3f320db64c
6 changed files with 8 additions and 6 deletions

View file

@ -13,7 +13,7 @@ import os, sys, importlib, inspect, json
from .exceptions import *
from .utils.jinja import get_jenv, get_template, render_template
__version__ = '8.0.66'
__version__ = '8.0.67'
__title__ = "Frappe Framework"
local = Local()

View file

@ -13,7 +13,7 @@ frappe.ui.form.on('Deleted Document', {
method: 'frappe.core.doctype.deleted_document.deleted_document.restore',
args: {name: frm.doc.name},
callback: function(r) {
//
frm.reload_doc();
}
});
});

View file

@ -23,6 +23,6 @@ def restore(name):
deleted.new_name = doc.name
deleted.restored = 1
deleted.save()
deleted.db_update()
frappe.msgprint(_('Document Restored'))

View file

@ -84,7 +84,6 @@ class DocTags:
def remove(self, dn, tag):
"""remove a user tag"""
tl = self.get_tags(dn).split(',')
print(tag, filter(lambda x:x!=tag, tl))
self.update(dn, filter(lambda x:x.lower()!=tag.lower(), tl))
def remove_all(self, dn):

View file

@ -34,6 +34,7 @@ frappe.email_alert = {
// set first option as blank to allow email alert not to be defaulted to the owner
frm.doc.name).options = [""].concat(["owner"].concat(email_fields));
frm.fields_dict.recipients.grid.refresh();
});
}
}

View file

@ -429,11 +429,13 @@ where name=%s""", (unicode(e), email.name), auto_commit=auto_commit)
def prepare_message(email, recipient, recipients_list):
message = email.message
if not message:
return ""
if email.add_unsubscribe_link and email.reference_doctype: # is missing the check for unsubscribe message but will not add as there will be no unsubscribe url
unsubscribe_url = get_unsubcribed_url(email.reference_doctype, email.reference_name, recipient,
email.unsubscribe_method, email.unsubscribe_params)
if message:
message = message.replace("<!--unsubscribe url-->", quopri.encodestring(unsubscribe_url))
message = message.replace("<!--unsubscribe url-->", quopri.encodestring(unsubscribe_url))
if email.expose_recipients == "header":
pass