mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +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 selections = this.selections();
|
||||
var queries = [];
|
||||
var utils = this.icinga.utils;
|
||||
if (selections.length === 1) {
|
||||
return $(selections[0]).attr('href');
|
||||
} else if (selections.length > 1 && self.hasMultiselection()) {
|
||||
selections.each(function (i, el) {
|
||||
var parts = [];
|
||||
$.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('&') + ')');
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user