summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--install/ui/src/freeipa/widget.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/install/ui/src/freeipa/widget.js b/install/ui/src/freeipa/widget.js
index 2321edabf..1db0052f4 100644
--- a/install/ui/src/freeipa/widget.js
+++ b/install/ui/src/freeipa/widget.js
@@ -917,7 +917,7 @@ IPA.multivalued_widget = function(spec) {
var old = that.valid;
that.valid = result.valid;
- if (!result.valid && result.errors) {
+ if (!result.valid && result.results) {
var offset = 0;
for (var i=0; i<that.rows.length; i++) {
@@ -936,10 +936,9 @@ IPA.multivalued_widget = function(spec) {
var error_link = that.get_error_link();
error_link.css('display', 'none');
error_link.html('');
- } else {
- that.show_error(result.message);
}
-
+ } else if (!result.valid) {
+ that.show_error(result.message);
} else {
that.hide_error();
}