Przeglądaj źródła

Merge pull request #4765 from Zlash65/fix-tree-rename

[Fix] Rename in treeview
version-14
Prateeksha Singh 7 lat temu
committed by GitHub
rodzic
commit
32ba5be6eb
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 5 usunięć
  1. +1
    -5
      frappe/public/js/frappe/views/treeview.js

+ 1
- 5
frappe/public/js/frappe/views/treeview.js Wyświetl plik

@@ -184,11 +184,7 @@ frappe.views.TreeView = Class.extend({
condition: function(node) {
let allow_rename = true;
if (me.doctype && frappe.get_meta(me.doctype)) {
let autoname = frappe.get_meta(me.doctype).autoname;

// only allow renaming if doctye is set and
// autoname property is "prompt"
allow_rename = autoname && autoname.toLowerCase()==='prompt';
if(!frappe.get_meta(me.doctype).allow_rename) allow_rename = false;
}
return !node.is_root && me.can_write && allow_rename;
},


Ładowanie…
Anuluj
Zapisz