fix double message in form save

This commit is contained in:
Pratik Vyas 2014-04-14 18:41:43 +05:30
parent 4d02afa221
commit c3ce6d6fd9

View file

@ -74,10 +74,7 @@ frappe.ui.form.save = function(frm, action, callback, btn) {
}
});
if(error_fields.length)
msgprint('<b>Mandatory fields required in '+ (doc.parenttype
? (frappe.meta.docfield_map[doc.parenttype][doc.parentfield].label + ' (Table)')
: doc.doctype) + ':</b>\n' + error_fields.join('\n'));
msgprint(__('<b>Mandatory fields required in {0}</b>', [(doc.parenttype
msgprint(__('Mandatory fields required in {0}', [(doc.parenttype
? (frappe.meta.docfield_map[doc.parenttype][doc.parentfield].label + ' (Table)')
: doc.doctype)]) + '\n' + error_fields.join('\n'));
});