Url values fail when empty.

Created on 3 July 2023, 12 months ago
Updated 6 July 2023, 12 months ago

Problem/Motivation

If url field type widget in form has empty value, the form can't be saved and results in error: This value should be of the correct primitive type.

Steps to reproduce

Add a field type of "uri" in settings and try to save widget settings config form or form with the custom field with empty uri field value. Acknowledge the error and in ability to save form.

Proposed resolution

Add case for massageFormValues() for 'uri' that sets value to NULL when empty string.

Remaining tasks

Provide a patch.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States apmsooner

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024