fields: fix MapMarkerSelectionWidget set_value method (#73617) #68

Merged
lguerin merged 1 commits from wip/73617-fix-MapMarkerSelectionWidget-set_value into main 2023-01-27 11:19:45 +01:00
2 changed files with 9 additions and 0 deletions

View File

@ -9512,6 +9512,12 @@ def test_form_item_map_data_source(pub, http_requests):
'err_class': 'Invalid request',
}
formdef.fields = [
fields.ItemField(id='1', label='map', display_mode='map', prefill={'type': 'string', 'value': '1;2'}),
]
formdef.store()
app.get('/test/', status=200) # no error
def test_form_item_dynamic_map_data_source(pub, http_requests):
NamedDataSource.wipe()

View File

@ -3310,6 +3310,9 @@ class MapMarkerSelectionWidget(MapWidget):
CompositeWidget._parse(self, request)
self.value = self.get('marker_id')
def set_value(self, value):
CompositeWidget.set_value(self, value)
class HiddenErrorWidget(HiddenWidget):
def set_error(self, error):