ugent-library / biblio-backoffice

Apache License 2.0
5 stars 0 forks source link

Publication : create link does not validate empty url #1640

Closed nicolasfranck closed 1 week ago

nicolasfranck commented 1 week ago

Steps to Reproduce

  1. Open your publication record
  2. Click on "Add link"
  3. Leave the URL empty
  4. Click on save
  5. No validation error appears

Fault missing return in https://github.com/ugent-library/biblio-backoffice/blob/630d702e4f2afb51cb7da05339678d43a08ea200/handlers/publicationediting/link.go#L61

cf. https://github.com/ugent-library/biblio-backoffice/blob/630d702e4f2afb51cb7da05339678d43a08ea200/handlers/datasetediting/link.go#L61 were that return is set.