Skip to content

Commit

Permalink
fix: hide invalid filters for 'HTML Editor' and 'Markdown Editor' (#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
barredterra committed Feb 22, 2023
1 parent 23137f2 commit 1c69d43
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frappe/public/js/frappe/ui/filters/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ frappe.ui.Filter = class {
Color: ['Between', 'Timespan'],
Check: this.conditions.map((c) => c[0]).filter((c) => c !== '='),
Code: ['Between', 'Timespan', '>', '<', '>=', '<=', 'in', 'not in'],
'HTML Editor': ['Between', 'Timespan', '>', '<', '>=', '<=', 'in', 'not in'],
'Markdown Editor': ['Between', 'Timespan', '>', '<', '>=', '<=', 'in', 'not in'],
Password: ['Between', 'Timespan', '>', '<', '>=', '<=', 'in', 'not in'],
Rating: ['like', 'not like', 'Between', 'in', 'not in', 'Timespan'],
};
Expand Down

0 comments on commit 1c69d43

Please sign in to comment.