Raffael Meyer
5fce1a57c0
fix: validate fieldname in get_group_by_count ( #21932 )
...
* fix: validate fieldname in get_group_by_count
* test: call get_group_by_count with invalid field
* test: is_default_field
2023-08-06 17:33:34 +05:30
Gavin D'souza
db209cbdf7
fix: Permit no fields if dt is table and no parenttype is specified
2023-02-06 13:33:49 +05:30
Gavin D'souza
4648c287f9
fix(meta): get_permitted_fields
...
Don't return any fields if user doesn't have permission for at least one
field
2023-02-04 11:55:02 +05:30
Gavin D'souza
c18c73d8c5
test: Add test for get_permitted_fields without parenttype
2023-02-03 22:23:14 +05:30
Gavin D'souza
e3d9c210a8
test: Added test for get_permitted_fields
2023-02-03 21:25:56 +05:30
Ankush Menat
3e2d2a703a
test: Use FrappeTestCase everywhere
2022-08-17 16:39:42 +05:30
Sagar Vora
f9bfbfec98
perf: reduce DB calls made in get_fetch_values ( #17671 )
...
* perf: reduce DB calls made in `get_fetch_values`
* fix: ensure return value is same as before
* test: add test for `frappe.model.utils.get_fetch_values`
2022-08-05 11:52:37 +05:30