Skip to content

Commit d2cc15a

Browse files
stherrienaspnetAwk34
authored andcommitted
fix(sql): Fix form field not displaying sequalize error
Display form field error when using sequelize as database fixes #2400
1 parent 913c5b5 commit d2cc15a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/app/client/app/account(auth)/signup/signup.controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default class SignupController {
6666
<%_ if(filters.sequelizeModels) { -%>
6767
// Update validity of form fields that match the sequelize errors
6868
if(err.name) {
69-
angular.forEach(err.fields, field => {
69+
angular.forEach(err.fields, (error, field) => {
7070
form[field].$setValidity('mongoose', false);
7171
this.errors[field] = err.message;
7272
});

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy