From b9e6ad1967ba24c7ebe5181da1ebe32d30e7b28f Mon Sep 17 00:00:00 2001 From: Pavel Vomacka Date: Mar 27 2017 16:10:04 +0000 Subject: WebUI: suppress truncation warning in select widget This widget is used on details pages and dialogs. When the size limit is set to lower number the warning about truncation was shown every time the details page was open. Now, with support for suppressing warning messages from server according to its code, we are able to disable warning with 13017 code (truncation warning) https://pagure.io/freeipa/issue/6618 Reviewed-By: Petr Vobornik --- diff --git a/install/ui/src/freeipa/widget.js b/install/ui/src/freeipa/widget.js index 223b449..b7a6504 100644 --- a/install/ui/src/freeipa/widget.js +++ b/install/ui/src/freeipa/widget.js @@ -5012,7 +5012,8 @@ IPA.entity_select_widget = function(spec) { entity: that.other_entity.name, method: 'find', args: [filter], - options: that.filter_options + options: that.filter_options, + suppress_warnings: [13017] }); var no_members = metadata.get('@mc-opt:' + cmd.get_command() + ':no_members'); if (no_members) {