Merge pull request #9326 from prssanna/group-by-fix
fix: replace all occurrences of string in group by field
This commit is contained in:
commit
7683fa7e07
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ frappe.ui.GroupBy = class {
|
|||
apply_settings(settings) {
|
||||
|
||||
// Extract fieldname from `tabdoctype`.`fieldname`
|
||||
let group_by_fieldname = settings.group_by.split('.')[1].replace('`', '');
|
||||
let group_by_fieldname = settings.group_by.split('.')[1].replace(/`/g, '');
|
||||
|
||||
this.groupby_select.val(group_by_fieldname);
|
||||
this.aggregate_function_select.val(settings.aggregate_function);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue