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_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