ac7d03
From 66ea6269d7ad401e5f89b1ab33f8e827efb25dd8 Mon Sep 17 00:00:00 2001
ac7d03
From: Pavel Vomacka <pvomacka@redhat.com>
ac7d03
Date: Fri, 17 Mar 2017 15:10:49 +0100
ac7d03
Subject: [PATCH] WebUI: suppress truncation warning in select widget
ac7d03
ac7d03
This widget is used on details pages and dialogs. When the size limit
ac7d03
is set to lower number the warning about truncation was shown every time
ac7d03
the details page was open.
ac7d03
ac7d03
Now, with support for suppressing warning messages from server according
ac7d03
to its code, we are able to disable warning with 13017 code (truncation
ac7d03
warning)
ac7d03
ac7d03
https://pagure.io/freeipa/issue/6618
ac7d03
ac7d03
Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
ac7d03
---
ac7d03
 install/ui/src/freeipa/widget.js | 3 ++-
ac7d03
 1 file changed, 2 insertions(+), 1 deletion(-)
ac7d03
ac7d03
diff --git a/install/ui/src/freeipa/widget.js b/install/ui/src/freeipa/widget.js
ac7d03
index 223b449962fabb47cf72b0443e39c295c783ab7f..b7a6504cf4af942c99ee217a2b47718af9e40f86 100644
ac7d03
--- a/install/ui/src/freeipa/widget.js
ac7d03
+++ b/install/ui/src/freeipa/widget.js
ac7d03
@@ -5012,7 +5012,8 @@ IPA.entity_select_widget = function(spec) {
ac7d03
             entity: that.other_entity.name,
ac7d03
             method: 'find',
ac7d03
             args: [filter],
ac7d03
-            options: that.filter_options
ac7d03
+            options: that.filter_options,
ac7d03
+            suppress_warnings: [13017]
ac7d03
         });
ac7d03
         var no_members = metadata.get('@mc-opt:' + cmd.get_command() + ':no_members');
ac7d03
         if (no_members) {
ac7d03
-- 
ac7d03
2.12.1
ac7d03