[fix] minor
This commit is contained in:
parent
54406fbc55
commit
d41ebe587f
1 changed files with 3 additions and 2 deletions
|
|
@ -953,8 +953,9 @@ frappe.ui.form.ControlDateRange = frappe.ui.form.ControlData.extend({
|
|||
this.set_mandatory && this.set_mandatory(value);
|
||||
},
|
||||
parse: function(value) {
|
||||
const to = __('to');
|
||||
value = value.replace(` ${to} `, ',');
|
||||
// replace the separator (which can be in user language) with comma
|
||||
const to = __('{0} to {1}').replace('{0}', '').replace('{1}', '');
|
||||
value = value.replace(to, ',');
|
||||
|
||||
if(value && value.includes(',')) {
|
||||
var vals = value.split(',');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue