Projet

Général

Profil

« Précédent | Suivant » 

Révision 4c4c59b9

Ajouté par Renato Botelho il y a plus de 9 ans

Make sure there are not empty options on dst select to avoid creating empty user or group. This issue was introduced by b4e9a4da

Voir les différences:

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) {
usr/local/www/system_usermanager.php
393 393
function copy_selected(srcid, dstid) {
394 394
	src_selbox = document.getElementById(srcid);
395 395
	dst_selbox = document.getElementById(dstid);
396
	count = dst_selbox.options.length;
397
	for (index = count - 1; index >= 0; index--) {
398
		if (dst_selbox.options[index].value == '') {
399
			dst_selbox.remove(index);
400
		}
401
	}
396 402
	count = src_selbox.options.length;
397 403
	for (index = 0; index < count; index++) {
398 404
		if (src_selbox.options[index].selected) {

Formats disponibles : Unified diff