Skip to content

Conversation

@jeremystretch
Copy link
Member

Fixes: #19023

  • Adapt get_field_value() to return null when the value of a bound field is null, regardless of any initial data provided.
  • Include tests for the six potential scenarios

@jeremystretch jeremystretch requested review from a team and bctiemann and removed request for a team March 27, 2025 14:40
@jnovinger jnovinger requested review from jnovinger and removed request for bctiemann March 31, 2025 21:26
@jnovinger jnovinger merged commit 88ef9ec into main Mar 31, 2025
6 checks passed
@jeremystretch jeremystretch deleted the 19023-get_field_value-null branch April 1, 2025 12:00
jnovinger pushed a commit that referenced this pull request Apr 1, 2025
* Move Module & ModuleType models to a separate file

* Add ModuleTypeProfile & related fields

* Initial work on JSON schema validation

* Add attributes property on ModuleType

* Introduce MultipleOfValidator

* Introduce JSONSchemaProperty

* Enable dynamic form field rendering

* Misc cleanup

* Fix migration conflict

* Ensure deterministic ordering of attriubte fields

* Support choices & default values

* Include module type attributes on module view

* Enable modifying individual attributes via REST API

* Enable filtering by attribute values

* Add documentation & tests

* Schema should be optional

* Include attributes column for profiles

* Profile is nullable

* Include some initial profiles to be installed via migration

* Fix migrations conflict

* Fix filterset test

* Misc cleanup

* Fixes #19023: get_field_value() should respect null values in bound forms (#19024)

* Skip filters which do not specify a JSON-serializable value

* Fix handling of array item types

* Fix initial data in schema field during bulk edit

* Implement sanity checking for JSON schema definitions

* Fall back to filtering by string value
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

get_field_value() does not recognize null field values on bound forms

3 participants