mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
js/actiontable: Fix the wrong parentheses encoding in multiselect
fixes #9347
This commit is contained in:
parent
ebd103f7ee
commit
3d846ea270
@ -239,13 +239,14 @@
|
|||||||
var self = this;
|
var self = this;
|
||||||
var selections = this.selections();
|
var selections = this.selections();
|
||||||
var queries = [];
|
var queries = [];
|
||||||
|
var utils = this.icinga.utils;
|
||||||
if (selections.length === 1) {
|
if (selections.length === 1) {
|
||||||
return $(selections[0]).attr('href');
|
return $(selections[0]).attr('href');
|
||||||
} else if (selections.length > 1 && self.hasMultiselection()) {
|
} else if (selections.length > 1 && self.hasMultiselection()) {
|
||||||
selections.each(function (i, el) {
|
selections.each(function (i, el) {
|
||||||
var parts = [];
|
var parts = [];
|
||||||
$.each(self.getRowData($(el)), function(key, value) {
|
$.each(self.getRowData($(el)), function(key, value) {
|
||||||
parts.push(encodeURIComponent(key) + '=' + encodeURIComponent(value));
|
parts.push(utils.fixedEncodeURIComponent(key) + '=' + utils.fixedEncodeURIComponent(value));
|
||||||
});
|
});
|
||||||
queries.push('(' + parts.join('&') + ')');
|
queries.push('(' + parts.join('&') + ')');
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user