X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=security%2Fruntime%2Forg.argeo.security.ria%2Fsrc%2Fargeo-ria-lib%2Fsecurity%2Fclass%2Forg%2Fargeo%2Fsecurity%2Fria%2Fcomponents%2FSimpleUserNatureImpl.js;h=182183ab1beae8716fd1bd3a599f0d2a0d49efd5;hb=1af54f2dad396ac71d9872d82c2981e4ac9c2281;hp=342cee246bf91cae6891673a037d89ee42e48674;hpb=b9d6c8b6386de221d1a316f8e2c1ffec4b7bffce;p=lgpl%2Fargeo-commons.git diff --git a/security/runtime/org.argeo.security.ria/src/argeo-ria-lib/security/class/org/argeo/security/ria/components/SimpleUserNatureImpl.js b/security/runtime/org.argeo.security.ria/src/argeo-ria-lib/security/class/org/argeo/security/ria/components/SimpleUserNatureImpl.js index 342cee246..182183ab1 100644 --- a/security/runtime/org.argeo.security.ria/src/argeo-ria-lib/security/class/org/argeo/security/ria/components/SimpleUserNatureImpl.js +++ b/security/runtime/org.argeo.security.ria/src/argeo-ria-lib/security/class/org/argeo/security/ria/components/SimpleUserNatureImpl.js @@ -20,11 +20,18 @@ qx.Class.define("org.argeo.security.ria.components.SimpleUserNatureImpl", { init : true, apply : "_applyEditMode", event : "changeEditMode" + }, + isNew : { + init : false, + check : "Boolean" } }, construct : function(){ this.base(arguments); + this.setDataMap({ + type:"org.argeo.security.nature.SimpleUserNature" + }); this._createGui(); this.setEditMode(false); }, @@ -79,10 +86,8 @@ qx.Class.define("org.argeo.security.ria.components.SimpleUserNatureImpl", { }, getData : function(format){ var dataMap = this.getDataMap(); - for(var key in dataMap){ - if(this.fields[key]){ - dataMap[key] = this.fields[key].getValue(); - } + for(var key in this.fields){ + dataMap[key] = this.fields[key].getValue(); } this.setDataMap(dataMap); return dataMap;