linkedpipes / dcat-ap-forms

Forms application for filling out DCAT-AP v2.0.0 compatible metadata
MIT License
2 stars 2 forks source link

Problem with invalid form and present returnUrl parameter #181

Closed jakubklimek closed 3 years ago

jakubklimek commented 3 years ago

When the returnUrl parameter is present, i.e. the contents of the form should be POSTed somewhere, and the form is invalid, the button says "Stažení neuplného záznamu", which is not exactly correct, and when I click it, nothing happens and there is an error in the console:

Uncaught (in promise) TypeError: Failed to fetch
    at y (dataset-registration-cs.d63b49bd6c68083de3b7.js:1)
    at b (dataset-registration-cs.d63b49bd6c68083de3b7.js:1)
    at z (dataset-registration-cs.d63b49bd6c68083de3b7.js:1)
    at dataset-registration-cs.d63b49bd6c68083de3b7.js:1
    at Array.forEach (<anonymous>)
    at dataset-registration-cs.d63b49bd6c68083de3b7.js:1
    at ti (dataset-registration-cs.d63b49bd6c68083de3b7.js:1)
    at dataset-registration-cs.d63b49bd6c68083de3b7.js:1
    at u (commons.13f9a0348f6aaa4d2ef8.js:2)
    at Generator._invoke (commons.13f9a0348f6aaa4d2ef8.js:2)
dataset-registration-cs.d63b49bd6c68083de3b7.js:1 Uncaught (in promise) TypeError: Cannot read property 'apply' of undefined
    at dataset-registration-cs.d63b49bd6c68083de3b7.js:1
    at dataset-registration-cs.d63b49bd6c68083de3b7.js:1
    at dataset-registration-cs.d63b49bd6c68083de3b7.js:1
    at Array.map (<anonymous>)
    at Pn (dataset-registration-cs.d63b49bd6c68083de3b7.js:1)
    at Sn (dataset-registration-cs.d63b49bd6c68083de3b7.js:1)
    at dataset-registration-cs.d63b49bd6c68083de3b7.js:1
    at u (commons.13f9a0348f6aaa4d2ef8.js:2)
    at Generator._invoke (commons.13f9a0348f6aaa4d2ef8.js:2)
    at Generator.next (commons.13f9a0348f6aaa4d2ef8.js:2)
jakubklimek commented 3 years ago

In this case, the text should not be "Stažení neúplného záznamu", but consistently with the message in the valid case "Potvrzení neúplného záznamu".