Révision 4c4c59b9
Ajouté par Renato Botelho il y a plus de 9 ans
usr/local/www/system_groupmanager.php | ||
---|---|---|
210 | 210 |
function copy_selected(srcid, dstid) { |
211 | 211 |
src_selbox = document.getElementById(srcid); |
212 | 212 |
dst_selbox = document.getElementById(dstid); |
213 |
count = dst_selbox.options.length; |
|
214 |
for (index = count - 1; index >= 0; index--) { |
|
215 |
if (dst_selbox.options[index].value == '') { |
|
216 |
dst_selbox.remove(index); |
|
217 |
} |
|
218 |
} |
|
213 | 219 |
count = src_selbox.options.length; |
214 | 220 |
for (index = 0; index < count; index++) { |
215 | 221 |
if (src_selbox.options[index].selected) { |
Formats disponibles : Unified diff
Make sure there are not empty options on dst select to avoid creating empty user or group. This issue was introduced by b4e9a4da