fix: Add fieldname property (#6349)

This commit is contained in:
Shreya Shah 2018-10-30 10:50:20 +05:30 committed by Rushabh Mehta
parent 35d08c124e
commit db0889131d

View file

@ -623,7 +623,7 @@ export default class Grid {
// upload
frappe.flags.no_socketio = true;
$(this.wrapper).find(".grid-upload").removeClass("hide").on("click", function() {
frappe.prompt({fieldtype:"Attach", label:"Upload File"},
frappe.prompt({fieldtype:"Attach", label:"Upload File", fieldname: "upload_file"},
function(data) {
var data = frappe.utils.csv_to_array(frappe.upload.get_string(data.upload_file));
// row #2 contains fieldnames;