Kaynağa Gözat

Merge pull request #15320 from ankush/fix/inconsistent_link_field_behaviour

fix: set invalid link fields to `undefined` instead `''`
version-14
mergify[bot] 3 yıl önce
committed by GitHub
ebeveyn
işleme
20a2a2dd03
Veri tabanında bu imza için bilinen anahtar bulunamadı GPG Anahtar Kimliği: 4AEE18F83AFDEB23
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. +1
    -1
      frappe/public/js/frappe/form/controls/link.js

+ 1
- 1
frappe/public/js/frappe/form/controls/link.js Dosyayı Görüntüle

@@ -471,7 +471,7 @@ frappe.ui.form.ControlLink = class ControlLink extends frappe.ui.form.ControlDat
docname: value, docname: value,
fields: columns_to_fetch, fields: columns_to_fetch,
}).then((response) => { }).then((response) => {
if (!response || !response.name) return "";
if (!response || !response.name) return null;
if (!docname || !columns_to_fetch.length) return response.name; if (!docname || !columns_to_fetch.length) return response.name;


for (const [target_field, source_field] of Object.entries(fetch_map)) { for (const [target_field, source_field] of Object.entries(fetch_map)) {


Yükleniyor…
İptal
Kaydet