This commit is contained in:
Kovid Goyal 2024-05-13 08:54:31 +05:30
parent 0b4d040893
commit 3108dfbfa4
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -43,10 +43,7 @@ def implementation(
for k in fm.custom_field_keys():
afields.add('*' + k[1:])
if 'all' in fields:
if template:
fields = sorted(afields - {'template'})
else:
fields = sorted(afields)
fields = sorted(afields if template else (afields - {'template'}))
sort_by = sort_by or 'id'
sort_fields = sort_by.split(',')
for sf in sort_fields: