ソースを参照

[hotfix] don't add trigger if the autoname field and fieldname is not same (#4074)

version-14
Makarand Bauskar 7年前
committed by GitHub
コミット
41f03cd303
1個のファイルの変更2行の追加1行の削除
  1. +2
    -1
      frappe/public/js/frappe/form/controls/data.js

+ 2
- 1
frappe/public/js/frappe/form/controls/data.js ファイルの表示

@@ -29,7 +29,8 @@ frappe.ui.form.ControlData = frappe.ui.form.ControlInput.extend({
if (!this.df.parent) return;
this.meta = frappe.get_meta(this.df.parent);
if (this.meta && this.meta.autoname
&& this.meta.autoname.substr(0, 6)==='field:') {
&& this.meta.autoname.substr(0, 6)==='field:'
&& this.meta.autoname.substr(6) === this.df.fieldname) {
this.$input.on('keyup', () => {
this.set_description('');
if (this.doc && this.doc.__islocal) {


読み込み中…
キャンセル
保存