correct select template bug #10164
This commit is contained in:
parent
6a42fa0f56
commit
360b03ee2e
1 changed files with 3 additions and 6 deletions
|
|
@ -254,6 +254,9 @@ frappe.ui.get_upload_dialog = function(opts){
|
|||
"reqd" : false,
|
||||
"filters": {
|
||||
'related_doctype': opts.args.doctype
|
||||
},
|
||||
onchange: function(){
|
||||
opts.args.gs_template = this.get_value();
|
||||
}
|
||||
},
|
||||
],
|
||||
|
|
@ -264,12 +267,6 @@ frappe.ui.get_upload_dialog = function(opts){
|
|||
dialog.show();
|
||||
var upload_area = $('<div style="padding-bottom: 25px;"></div>').prependTo(dialog.body);
|
||||
|
||||
var fd = dialog.fields_dict;
|
||||
|
||||
$(fd.gs_template.input).change(function() {
|
||||
opts.args.gs_template = fd.gs_template.get_value();
|
||||
});
|
||||
|
||||
frappe.upload.make({
|
||||
parent: upload_area,
|
||||
args: opts.args,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue