mirror of https://github.com/ghostfolio/ghostfolio
Browse Source
The url attribute in the asset profile dialog of the admin control panel is optional, but leaving it empty made the form fail with "url must be a URL address". The form initializes the control with an empty string, which is not skipped by IsOptional, since it only applies to null and undefined. Transform empty strings to undefined in the DTO so the validation treats the attribute as absent. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>pull/7508/head
2 changed files with 11 additions and 1 deletions
Loading…
Reference in new issue