mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 01:24:38 +00:00
Services: Captive Portal: Vouchers - urlencode() selector items in vouchergrouplist, closes https://github.com/opnsense/core/issues/8319
Although this isn't the prettiest option in the world, it does solve the issue. It would have been better if we had "keyed" the items in some way so input is less sensitive for issues like these
This commit is contained in:
parent
f1f87d134b
commit
a3d588cca2
@ -63,7 +63,7 @@
|
||||
if (status == "success") {
|
||||
$('#voucher-groups').html("");
|
||||
$.each(data, function(key, value) {
|
||||
$('#voucher-groups').append($("<option></option>").attr("value", value).text(value));
|
||||
$('#voucher-groups').append($("<option></option>").attr("value", encodeURIComponent(value)).text(value));
|
||||
});
|
||||
$('.selectpicker').selectpicker('refresh');
|
||||
// link on change event
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user