Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aH2o3-0006F9-JL for pgadmin-hackers@arkaria.postgresql.org; Thu, 07 Jan 2016 05:08:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aH2o3-0006WE-61 for pgadmin-hackers@arkaria.postgresql.org; Thu, 07 Jan 2016 05:08:15 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aH2o2-0006W1-Mw for pgadmin-hackers@postgresql.org; Thu, 07 Jan 2016 05:08:14 +0000 Received: from mail-pa0-x22d.google.com ([2607:f8b0:400e:c03::22d]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aH2nz-0006M0-Tu for pgadmin-hackers@postgresql.org; Thu, 07 Jan 2016 05:08:13 +0000 Received: by mail-pa0-x22d.google.com with SMTP id ho8so2393191pac.2 for ; Wed, 06 Jan 2016 21:08:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=to:from:subject:message-id:date:user-agent:mime-version :content-type; bh=EXT3mfLWC/nH2+DtodeF178G228/rPRFZjN/Tv3o6kI=; b=P6hHYKrKbvTIZn+Up1OBMcCjhHFDNmJtotWON5K3f1+RoLV7nUXxM3XdeGkL11YCUc LHM6C7zYpY7Ya0G9DIWzurzWOff/0oJ6tVx/VUeRXn8DH7iadz944Jb3B40dPNspsMWr rHgLaNlCQ10oqpjOcGCCuvHIE0rBRT0biB0VBYBUSoCZcHQTjGhDWpz11RIea8+qyvdY 0nad3gf0sMy0eRv4f9NhY9+w3uTVRtgsTdgus1TMhV9S6IB8nUBET/XUMbJCtS8FT1Df TJF277sE58H88r07f97TCzdw4qtKgkljyrgNzWuwkmaD2fsrtVDS+xcwM3XFWX6Qg8M2 8LCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-type; bh=EXT3mfLWC/nH2+DtodeF178G228/rPRFZjN/Tv3o6kI=; b=KAO0Yyvb4KPTai8WlAJCkqxGi98wcjfvAr+MscJFQXvfMdxDjn/viJYSc/XiC+lE15 tTtzYGXYHi1GneaSF9bct5asO146AM0Vcnk0L/07SXJyfW/tRqAyTDXx4opFBGvdjxXZ WiC70YZPYrSg2wy9LAkpN8ROMAL42B2TJXz5M48w4h4oaEWo0kn6cx6SL9CsJ9oeS9Iq W8Kin2l/x7Hv6GsjGAIoNkPQbOrCpMtjyTRFOqFI+p5AHcns1xl7QAtDnwRcyfGcpw8q Ky0jVDAzqc1u6pTHB5VepelgjDCj3ZR4M7qoMzHpmm13u5QhApH7hUDsKiNtWM4xKblQ 7mDQ== X-Gm-Message-State: ALoCoQnLXgX4O/buCwiW3MvyrjTRdTUrY831ENsB9AHkejvuTQynO8RsJdeHUvH/RITCsnYGxjQXMU02X/dMJBU1nAFsbWQh6CZIHgqI1XDHj1QVTesHQeZrDSPRyrL5ibcM54U7bOm+GZ090Ws0IHkS61CnYCAqskbQ8puA7ZGjERUwPzM+4BCnsbpBYidh8wHEfsyQCYh89FOYrGaxFIbJdE26FRZMlg== X-Received: by 10.66.159.38 with SMTP id wz6mr148658423pab.12.1452143290845; Wed, 06 Jan 2016 21:08:10 -0800 (PST) Received: from [172.24.35.244] ([59.162.78.200]) by smtp.gmail.com with ESMTPSA id fc8sm147211613pab.21.2016.01.06.21.08.09 for (version=TLSv1/SSLv3 cipher=OTHER); Wed, 06 Jan 2016 21:08:10 -0800 (PST) To: pgadmin-hackers@postgresql.org From: Murtuza Zabuawala Subject: PATCH: Minor patch to fix issue in Integer Control [ pgAdmin4 ] Message-ID: <568DF2B7.3070105@enterprisedb.com> Date: Thu, 7 Jan 2016 10:38:07 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050509080401040702040900" X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org This is a multi-part message in MIME format. --------------050509080401040702040900 Content-Type: multipart/alternative; boundary="------------090608090808060302060502" --------------090608090808060302060502 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi, Please find minor patch to fix Backform Integer-Control. _Issue:__ _ After validation of input value, value was not getting updated in model, hence it was taking default value from schema. Regards, Murtuza Zabuawala --------------090608090808060302060502 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit Hi,

Please find minor patch to fix Backform Integer-Control.

Issue:
    After validation of input value, value was not getting updated in model, hence it was taking default value from schema.


Regards,
Murtuza Zabuawala
--------------090608090808060302060502-- --------------050509080401040702040900 Content-Type: text/x-patch; name="Fix_IntegerControl.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Fix_IntegerControl.patch" diff --git a/web/pgadmin/static/js/backform.pgadmin.js b/web/pgadmin/static/js/backform.pgadmin.js index 708b7fb..b5e5962 100644 --- a/web/pgadmin/static/js/backform.pgadmin.js +++ b/web/pgadmin/static/js/backform.pgadmin.js @@ -1070,6 +1070,12 @@ ).value() ); } + + //After validation we need to set that value into model + this.stopListening(this.model, "change:" + name, this.render); + this.model.set(name, value); + this.listenTo(this.model, "change:" + name, this.render); + } }); --------------050509080401040702040900 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers --------------050509080401040702040900--