correct select template bug #10164

This commit is contained in:
Paulo Almeida 2017-08-28 16:04:38 +01:00
parent 6a42fa0f56
commit 360b03ee2e

View file

@ -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,