diff --git a/debian/changelog b/debian/changelog index 0301c83e..286a0f1a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -hedera-web (1.405.94) stable; urgency=low +hedera-web (1.405.95) stable; urgency=low * Initial Release. diff --git a/forms/account/address/address.js b/forms/account/address/address.js index 46770178..0404979a 100644 --- a/forms/account/address/address.js +++ b/forms/account/address/address.js @@ -1,35 +1,28 @@ -Hedera.Address = new Class -({ - Extends: Hedera.Form +Hedera.Address = new Class({ + Extends: Hedera.Form, - ,activate: function () - { - this.$('model').setInfo ('a', 'myAddress', 'hedera', ['id'], 'id'); - this.$('model').setDefault ('clientFk', 'a', - new Sql.Function ({schema: 'account', name: 'myUserGetId'})); - } + activate: function() { + this.$('model').setInfo('a', 'myAddress', 'hedera', ['id'], 'id'); + this.$('model').setDefault('clientFk', 'a', + new Sql.Function({schema: 'account', name: 'myUserGetId'})); + }, - ,onStatusChange: function (form) - { + onStatusChange: function(form) { if (form.ready && this.$('address').value == 0) - form.insertRow (); - } + form.insertRow(); + }, - ,onOperationsDone: function () - { - Htk.Toast.showMessage (_('AddressChangedSuccessfully')); - this.onReturnClick (); - } + onOperationsDone: function() { + Htk.Toast.showMessage(_('AddressChangedSuccessfully')); + this.onReturnClick(); + }, - ,onAcceptClick: function () - { - this.$('iter').performOperations (); - } + onAcceptClick: function() { + this.$('iter').performOperations(); + }, - ,onReturnClick: function () - { + onReturnClick: function() { window.history.back(); } }); - diff --git a/forms/account/address/ui.xml b/forms/account/address/ui.xml index 0406dfdd..8e742686 100644 --- a/forms/account/address/ui.xml +++ b/forms/account/address/ui.xml @@ -9,14 +9,12 @@ updatable="true" mode="ON_DEMAND" on-operations-done="onOperationsDone"> - - SELECT a.id, a.street, a.nickname, a.city, - a.postalCode, a.provinceFk, c.id countryFk - FROM myAddress a - LEFT JOIN vn.province p ON p.id = a.provinceFk - JOIN vn.country c ON c.id = p.countryFk - WHERE a.id = #address - + SELECT a.id, a.street, a.nickname, a.city, + a.postalCode, a.provinceFk, c.id countryFk + FROM myAddress a + LEFT JOIN vn.province p ON p.id = a.provinceFk + JOIN vn.country c ON c.id = p.countryFk + WHERE a.id = #address @@ -67,10 +65,8 @@ column="countryFk" one-way="true"/> - - SELECT id, country FROM vn.country - ORDER BY country - + SELECT id, country FROM vn.country + ORDER BY country @@ -78,11 +74,9 @@ - - SELECT id, name FROM vn.province - WHERE countryFk = #country - ORDER BY name - + SELECT id, name FROM vn.province + WHERE countryFk = #country + ORDER BY name diff --git a/js/db/param.js b/js/db/param.js index b49bdd54..02058053 100644 --- a/js/db/param.js +++ b/js/db/param.js @@ -93,6 +93,9 @@ module.exports = new Class ,onIterChange: function () { + if (this._oneWay && this.value != null) + return; + this._formLock = true; var formValue; diff --git a/package.json b/package.json index 27062e5d..bc16470e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hedera-web", - "version": "1.405.94", + "version": "1.405.95", "description": "Verdnatura web page", "license": "GPL-3.0", "repository": {