Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog.d/bugfix/ZBX-192621
-rw-r--r--ui/app/views/js/popup.massupdate.js.php4
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog.d/bugfix/ZBX-19262 b/ChangeLog.d/bugfix/ZBX-19262
new file mode 100644
index 00000000000..6aafc7fcd2e
--- /dev/null
+++ b/ChangeLog.d/bugfix/ZBX-19262
@@ -0,0 +1 @@
+..F....... [ZBX-19262] fixed tag space trimming in mass update popup (miks)
diff --git a/ui/app/views/js/popup.massupdate.js.php b/ui/app/views/js/popup.massupdate.js.php
index 718b97420de..ab3f70b199f 100644
--- a/ui/app/views/js/popup.massupdate.js.php
+++ b/ui/app/views/js/popup.massupdate.js.php
@@ -427,6 +427,10 @@ function submitPopup(overlay) {
$(form).trimValues(['[name^="valuemap_rename["]']);
}
+ if (form.querySelector('#visible_tags:checked')) {
+ $(form).trimValues(['[name^="tags"][name$="[tag]"]', '[name^="tags"][name$="[value]"]']);
+ }
+
if (action == 'popup.massupdate.host') {
// Depending on checkboxes, create a value for hidden field 'tls_accept'.
let tls_accept = 0x00;