Check selection of dict schema when selection or help selection are modified

It is the modification of stored field that must be checked and not the json
version.

Closes #12781
(grafted from 4f04e2409fad82de243439bac3128c1002d540ee)

--HG--
branch : 7.0
This commit is contained in:
Cédric Krier
2023-12-17 20:33:32 +01:00
parent 6c0fd494ed
commit bf4f274278
+1 -1
View File
@@ -134,7 +134,7 @@ class DictSchemaMixin(object):
@classmethod
def check_selection(cls, schemas, field_names=None):
if field_names and not (field_names & {
'type_', 'selection_json', 'help_selection_json'}):
'type_', 'selection', 'help_selection'}):
return
for schema in schemas:
if schema.type_ not in {'selection', 'multiselection'}: