Changed case in modules.txt
This commit is contained in:
parent
4a6f1a12a0
commit
131ae091e1
4 changed files with 6 additions and 5 deletions
|
|
@ -474,6 +474,7 @@ def setup_module_map():
|
|||
if app=="webnotes": app="frappe"
|
||||
local.app_modules.setdefault(app, [])
|
||||
for module in get_module_list(app):
|
||||
module = scrub(module)
|
||||
local.module_app[module] = app
|
||||
local.app_modules[app].append(module)
|
||||
|
||||
|
|
|
|||
|
|
@ -190,5 +190,5 @@ def add_module_defs(app):
|
|||
for module in modules:
|
||||
d = frappe.new_doc("Module Def")
|
||||
d.app_name = app
|
||||
d.module_name = frappe.unscrub(module)
|
||||
d.module_name = module
|
||||
d.save()
|
||||
|
|
|
|||
|
|
@ -73,12 +73,12 @@ def rename_parent_and_child(doctype, old, new, meta):
|
|||
update_child_docs(old, new, meta)
|
||||
|
||||
def validate_rename(doctype, new, meta, merge, force, ignore_permissions):
|
||||
exists = frappe.db.exists(doctype, new)
|
||||
exists = frappe.db.get_value(doctype, new)
|
||||
|
||||
if merge and not exists:
|
||||
frappe.msgprint(_("{0} {1} does not exist, select a new target to merge").format(doctype, new), raise_exception=1)
|
||||
|
||||
if (not merge) and exists:
|
||||
if (not merge) and exists == new:
|
||||
frappe.msgprint(_("Another {0} with name {1} exists, select another name").format(doctype, new), raise_exception=1)
|
||||
|
||||
if not (ignore_permissions or frappe.has_permission(doctype, "write")):
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
core
|
||||
website
|
||||
Core
|
||||
Website
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue