Merge branch 'hotfix'
This commit is contained in:
commit
087562fc56
3 changed files with 5 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ import os, sys, importlib, inspect, json
|
|||
from .exceptions import *
|
||||
from .utils.jinja import get_jenv, get_template, render_template, get_email_from_template
|
||||
|
||||
__version__ = '10.1.47'
|
||||
__version__ = '10.1.48'
|
||||
__title__ = "Frappe Framework"
|
||||
|
||||
local = Local()
|
||||
|
|
|
|||
|
|
@ -464,6 +464,9 @@ def validate_fields(meta):
|
|||
options = frappe.db.get_value("DocType", d.options, "name")
|
||||
if not options:
|
||||
frappe.throw(_("Options must be a valid DocType for field {0} in row {1}").format(d.label, d.idx))
|
||||
elif not (options == d.options):
|
||||
frappe.throw(_("Options {0} must be the same as doctype name {1} for the field {2}")
|
||||
.format(d.options, options, d.label))
|
||||
else:
|
||||
# fix case
|
||||
d.options = options
|
||||
|
|
|
|||
|
|
@ -113,6 +113,7 @@ $.extend(frappe.perm, {
|
|||
var permlevel = cint(p.permlevel);
|
||||
if(!perm[permlevel]) {
|
||||
perm[permlevel] = {};
|
||||
perm[permlevel]["permlevel"] = permlevel
|
||||
}
|
||||
|
||||
$.each(frappe.perm.rights, function(i, key) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue