mirror of
https://github.com/inventree/InvenTree.git
synced 2026-01-30 01:53:42 +00:00
Fix for string form fields (#10814)
* Fix for string form fields - replace null values with empty strings * Expose more serializer metadata * Check if null values are not allowed * Fix type * Try removing feature * Reduce deltas * Remove extra field attrs entirely (for testing) * Comment out changes * Tweak form values * Fix for form validation
This commit is contained in:
@@ -48,6 +48,8 @@ export type ApiFormFieldHeader = {
|
||||
* @param model : The model to use for related fields
|
||||
* @param filters : Optional API filters to apply to related fields
|
||||
* @param required : Whether the field is required
|
||||
* @param allow_null: Whether the field allows null values
|
||||
* @param allow_blank: Whether the field allows blank values
|
||||
* @param hidden : Whether the field is hidden
|
||||
* @param disabled : Whether the field is disabled
|
||||
* @param error : Optional error message to display
|
||||
@@ -103,6 +105,8 @@ export type ApiFormFieldType = {
|
||||
choices?: ApiFormFieldChoice[];
|
||||
hidden?: boolean;
|
||||
disabled?: boolean;
|
||||
allow_null?: boolean;
|
||||
allow_blank?: boolean;
|
||||
exclude?: boolean;
|
||||
read_only?: boolean;
|
||||
placeholder?: string;
|
||||
|
||||
Reference in New Issue
Block a user