public inbox for [email protected]  
help / color / mirror / Atom feed
From: Harshal Dhumal <[email protected]>
To: Ashesh Vashi <[email protected]>
Cc: [email protected]
Subject: Patch for TypeError: this.field is undefined error
Date: Tue, 12 Jan 2016 10:57:31 +0530
Message-ID: <CAFiP3vzf3qyPx+DRZBOG3Hk0Bgn3znj9+MqU_2ZxWYegQvNUkA@mail.gmail.com> (raw)
List-Unsubscribe:  <mailto:[email protected]?body=unsub%20pgadmin-hackers>

Hi,


Please find attached minor patch for TypeError: this.field is undefined
error in pgadmin.backform.js


-- 
*Harshal Dhumal*
*Software Engineer *



EenterpriseDB <http://www.enterprisedb.com;


-- 
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers


Attachments:

  [text/x-patch] pgadmin.backform_12_Jan.patch (556B, 3-pgadmin.backform_12_Jan.patch)
  download | inline diff:
diff --git a/web/pgadmin/static/js/backform.pgadmin.js b/web/pgadmin/static/js/backform.pgadmin.js
index a753f5d..6ef634c 100644
--- a/web/pgadmin/static/js/backform.pgadmin.js
+++ b/web/pgadmin/static/js/backform.pgadmin.js
@@ -858,7 +859,7 @@
       this.clearInvalid();
 
       this.$el.find('.subnode-body').each(function(ix, el) {
-        var error = self.keyPathAccessor(errorModel.toJSON(), this.field.get('name'));
+        var error = self.keyPathAccessor(errorModel.toJSON(), self.field.get('name'));
 
         if (_.isEmpty(error)) return;
 


view thread (2+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: Patch for TypeError: this.field is undefined error
  In-Reply-To: <CAFiP3vzf3qyPx+DRZBOG3Hk0Bgn3znj9+MqU_2ZxWYegQvNUkA@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox