|
@@ -29,7 +29,8 @@ frappe.ui.form.ControlData = frappe.ui.form.ControlInput.extend({ |
|
|
if (!this.df.parent) return; |
|
|
if (!this.df.parent) return; |
|
|
this.meta = frappe.get_meta(this.df.parent); |
|
|
this.meta = frappe.get_meta(this.df.parent); |
|
|
if (this.meta && this.meta.autoname |
|
|
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.$input.on('keyup', () => { |
|
|
this.set_description(''); |
|
|
this.set_description(''); |
|
|
if (this.doc && this.doc.__islocal) { |
|
|
if (this.doc && this.doc.__islocal) { |
|
|