pgreco / rpms / ipa

Forked from forks/areguera/rpms/ipa 4 years ago
Clone

Blame SOURCES/0023-WebUI-suppress-truncation-warning-in-select-widget.patch

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