Sfoglia il codice sorgente

fix: Don't overwrite source_name if source_name is defined (bp #12280) (#12341)

Co-authored-by: Richard Case <64409021+casesolved-co-uk@users.noreply.github.com>
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
version-14
mergify[bot] 4 anni fa
committed by GitHub
parent
commit
1133f40dd2
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 4AEE18F83AFDEB23
1 ha cambiato i file con 1 aggiunte e 3 eliminazioni
  1. +1
    -3
      frappe/public/js/frappe/model/create_new.js

+ 1
- 3
frappe/public/js/frappe/model/create_new.js Vedi File

@@ -362,9 +362,7 @@ $.extend(frappe.model, {
);
} else if (!opts.source_name && opts.frm) {
opts.source_name = opts.frm.doc.name;

// Allow opening a mapped doc without a source document name
} else if (!opts.frm) {
} else if (!opts.frm && !opts.source_name) {
opts.source_name = null;
}



Caricamento…
Annulla
Salva