From fb0ca7e75942b0bb9a85982ef7acc22774021799 Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Mon, 2 Mar 2020 14:57:12 +0100 Subject: [PATCH] Fix job form error message generation --- app/static/js/nopaque.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/static/js/nopaque.js b/app/static/js/nopaque.js index c7dda181..e99090eb 100644 --- a/app/static/js/nopaque.js +++ b/app/static/js/nopaque.js @@ -79,7 +79,7 @@ nopaque.Forms.init = function() { } if (request.status === 400) { for (let [field, errors] of Object.entries(JSON.parse(this.responseText))) { - fieldElement = form.querySelector(`input[name="${field}"]`).closest(".input-field"); + fieldElement = form.querySelector(`input[name="add-job-form-${field}"]`).closest(".input-field"); for (let error of errors) { fieldElement.insertAdjacentHTML("beforeend", `${error}`); }