Sfoglia il codice sorgente

fix: ignore perm level validation if row deleted (#18290) (#18292)

(cherry picked from commit bd21398252)

Co-authored-by: Ankush Menat <ankush@frappe.io>
version-14
mergify[bot] 2 anni fa
committed by GitHub
parent
commit
0d5dffeefa
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 4AEE18F83AFDEB23
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. +4
    -1
      frappe/model/base_document.py

+ 4
- 1
frappe/model/base_document.py Vedi File

@@ -1175,7 +1175,10 @@ class BaseDocument:
# get values from old doc
if self.get("parent_doc"):
parent_doc = self.parent_doc.get_latest()
ref_doc = [d for d in parent_doc.get(self.parentfield) if d.name == self.name][0]
child_docs = [d for d in parent_doc.get(self.parentfield) if d.name == self.name]
if not child_docs:
return
ref_doc = child_docs[0]
else:
ref_doc = self.get_latest()



Caricamento…
Annulla
Salva