summaryrefslogtreecommitdiff
path: root/webapps
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2007-02-08 21:26:44 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:44:53 -0500
commitf68a4f3d60bea74a9fc348cae42943db39e9633b (patch)
treef818f6c1432178b90ff2904c46c2dc56256b09df /webapps
parentcce1a4d323cf4cb1140fe87215bdea764cda2a86 (diff)
downloadsamba-f68a4f3d60bea74a9fc348cae42943db39e9633b.tar.gz
samba-f68a4f3d60bea74a9fc348cae42943db39e9633b.tar.bz2
samba-f68a4f3d60bea74a9fc348cae42943db39e9633b.zip
r21249: Now the ldif is generated correctly, but still rpc is not happy
(This used to be commit 3367f2fe69b8d2c3abad8718991378986d2d85dd)
Diffstat (limited to 'webapps')
-rw-r--r--webapps/swat/source/class/swat/module/ldbbrowse/LdbModify.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/webapps/swat/source/class/swat/module/ldbbrowse/LdbModify.js b/webapps/swat/source/class/swat/module/ldbbrowse/LdbModify.js
index 209aac4d33..f28f4b1018 100644
--- a/webapps/swat/source/class/swat/module/ldbbrowse/LdbModify.js
+++ b/webapps/swat/source/class/swat/module/ldbbrowse/LdbModify.js
@@ -328,11 +328,13 @@ qx.Proto.getLdif = function() {
}
var ldif = "# Add operation\n";
- ldif = ldif + "dn: " + this._rdn + "," + this._basedn + "\n";
+ ldif = ldif + "dn: " + this._rdn.getValue() + "," + this._basedn.getValue() + "\n";
- for (var c in this._attrArea.getChildren()) {
- if (c instanceof qx.ui.layout.HorizontalBoxLayout) {
- ldif = ldif + c.getUserData("attrName") + ": " + c.getUserData("attrVal").getValue() + "\n";
+ c = this._attrArea.getChildren();
+
+ for (var i = 0; i < c.length; i++) {
+ if (c[i] instanceof qx.ui.layout.HorizontalBoxLayout) {
+ ldif = ldif + c[i].getUserData("attrName") + ": " + c[i].getUserData("attrVal").getComputedValue() + "\n";
}
}
// terminate ldif record