Describe the bug
When submitting a resource with an error (i.e. a missing publication year, or invalid URL for Publisher link), causes the Permanent Link field will become highlighted in red (as though it has an error) even though the value of the permanent link field may be valid.
To Reproduce
Steps to reproduce the behaviour:
Add a new resource
Fill in the Permanent Link field with a valid URL (i.e. google.com).
Leave Publication year blank, or fill in foo for Publisher Link.
Submit the form.
Notice an error message appears for the publication year, and the Permanent Link field is highlighted in red.
Expected behaviour
If there are errors on the form, and the Permanent Link field is valid, then the Permanent Link field should not appear with error highlighting.
Desktop (please complete the following information):
Describe the bug When submitting a resource with an error (i.e. a missing publication year, or invalid URL for Publisher link), causes the Permanent Link field will become highlighted in red (as though it has an error) even though the value of the permanent link field may be valid.
To Reproduce Steps to reproduce the behaviour:
google.com
).foo
for Publisher Link.Expected behaviour If there are errors on the form, and the Permanent Link field is valid, then the Permanent Link field should not appear with error highlighting.
Desktop (please complete the following information):