diff --git a/cypress/integration/control_duration.js b/cypress/integration/control_duration.js index 20634acb80..8ff6b8668d 100644 --- a/cypress/integration/control_duration.js +++ b/cypress/integration/control_duration.js @@ -17,7 +17,7 @@ context('Control Duration', () => { } it('should set duration', () => { - get_dialog_with_duration().as('dialog') + get_dialog_with_duration().as('dialog'); cy.get('.frappe-control[data-fieldname=duration] input') .first() .click(); diff --git a/frappe/public/js/frappe/form/formatters.js b/frappe/public/js/frappe/form/formatters.js index 23c0ad5d5d..37c4db7428 100644 --- a/frappe/public/js/frappe/form/formatters.js +++ b/frappe/public/js/frappe/form/formatters.js @@ -142,10 +142,7 @@ frappe.form.formatters = { }, DateRange: function(value) { if($.isArray(value)) { - return __("{0} to {1}", [ - frappe.datetime.str_to_user(value[0]), - frappe.datetime.str_to_user(value[1]) - ]); + return __("{0} to {1}", [frappe.datetime.str_to_user(value[0]), frappe.datetime.str_to_user(value[1])]); } else { return value || ""; } @@ -188,7 +185,7 @@ frappe.form.formatters = { return value || ""; }, - Duration: function(value, docfield, doc) { + Duration: function(value, docfield) { if (value) { let duration_options = frappe.meta.get_duration_options(docfield); value = frappe.utils.get_formatted_duration(value, duration_options); diff --git a/frappe/public/js/frappe/model/meta.js b/frappe/public/js/frappe/model/meta.js index c6b5ca0b4a..f71689e409 100644 --- a/frappe/public/js/frappe/model/meta.js +++ b/frappe/public/js/frappe/model/meta.js @@ -161,8 +161,7 @@ $.extend(frappe.meta, { if(!out) { // eslint-disable-next-line - console.log(__('Warning: Unable to find {0} in any table related to {1}', [ - key, __(doctype)])); + console.log(__('Warning: Unable to find {0} in any table related to {1}', [key, __(doctype)])); } } return out;