rem: var range = getIPRangeManager().getIPRange(iprangeId); 
add: var range = getAccreditableManager().getIPRangeManager().getIPRange(iprangeId); 
context: function iprange_change_groups(iprangeId) {    var range = getIPRangeManager().getIPRange(iprangeId);        var rangeGroupArray = range.getGroups();    var rangeGroups = new java.util.ArrayList(java.util.Arrays.asList(rangeGroupArray));        var iterator = getGroupManager().getGroups();    var groups = new java.util.ArrayList();    while (iterator.hasNext()) {    	var group = iterator.next();    	if (!rangeGroups.contains(group)) {    		groups.add(group);    	}    }        while (true) {	    sendPageAndWait("ipranges/" + iprangeId + "/groups.xml", {	    	"iprange-id" : iprangeId,	    	"groups" : groups,	    	"iprange-groups" : rangeGroups	    });	    		var groupId = cocoon.request.get("group");		if (cocoon.request.get("add_group") && groupId != "") {			var group = getGroupManager().getGroup(groupId);			if (!rangeGroups.contains(group)) {				rangeGroups.add(group);				groups.remove(group);			}		}	    		var rangeGroupId = cocoon.request.get("iprange_group");		if (cocoon.request.get("remove_group") && rangeGroupId != "") {			var group = getGroupManager().getGroup(rangeGroupId);			if (rangeGroups.contains(group)) {				rangeGroups.remove(group);				groups.add(group);			}		}	    if (cocoon.request.get("cancel")) {	    	break;	    }	    		if (cocoon.request.get("submit")) {			range.removeFromAllGroups();			var iterator = rangeGroups.iterator();			while (iterator.hasNext()) {				var group = iterator.next();				group.add(range);			}			range.save();			break;		}	}   	sendPage("redirect.html", { "url" : "index.html" });}
meta: 791	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/b05dc7bed680626a70f8a3bbaa117c3fe4aa02de/iprange-admin.js/buggy/src/webapp/lenya/content/admin/ipranges/iprange-admin.js