summaryrefslogtreecommitdiffstats
path: root/install/ui/add.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-05-27 12:04:20 -0500
committerAdam Young <ayoung@redhat.com>2011-05-27 21:38:26 -0400
commit6304d9173c16e082d6844b329987680b85086cb7 (patch)
tree957c54e65b73f9f75f3e789f7f4804df1ef89c14 /install/ui/add.js
parente91aa64d4ae6d85284c3b062f5ba03a8da27f547 (diff)
downloadfreeipa-6304d9173c16e082d6844b329987680b85086cb7.tar.gz
freeipa-6304d9173c16e082d6844b329987680b85086cb7.tar.xz
freeipa-6304d9173c16e082d6844b329987680b85086cb7.zip
Fixed problem deleting value in text field.
Previously deleting a value in a text field did not work because the field is not included in the modify operation when the value is empty. The details facet's update() method has been modified to update only dirty fields. The section lists in details facet and dialog have been converted into ordered maps. Ticket #1256
Diffstat (limited to 'install/ui/add.js')
-rw-r--r--install/ui/add.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/install/ui/add.js b/install/ui/add.js
index 0df0db612..73a423f00 100644
--- a/install/ui/add.js
+++ b/install/ui/add.js
@@ -128,8 +128,9 @@ IPA.add_dialog = function (spec) {
}
}
- for (var j=0; j<that.sections.length; j++) {
- var section = that.sections[j];
+ var sections = that.sections.values;
+ for (var j=0; j<sections.length; j++) {
+ var section = sections[j];
var section_fields = section.fields.values;
for (var k=0; k<section_fields.length; k++) {