VIVO-804: fix ordering of property groups

This commit is contained in:
Tim Worrall 2014-06-23 10:53:50 -04:00
parent 8510505424
commit 638699f08e
2 changed files with 2 additions and 2 deletions

View file

@ -160,6 +160,8 @@ public class DatapropRetryController extends BaseEditController {
optionMap.put("RangeDatatypeURI", datatypeOptionList);
List groupOptList = FormUtils.makeOptionListFromBeans(vreq.getUnfilteredWebappDaoFactory().getPropertyGroupDao().getPublicGroups(true),"URI","Name", ((objectForEditing.getGroupURI()==null) ? "" : objectForEditing.getGroupURI()), null, (objectForEditing.getGroupURI()!=null));
HashMap<String,Option> hashMap = new HashMap<String,Option>();
groupOptList = getSortedList(hashMap,groupOptList,vreq);
groupOptList.add(0,new Option("","none"));
optionMap.put("GroupURI", groupOptList);

View file

@ -49,8 +49,6 @@ public class ListPropertyGroupsController extends FreemarkerHttpServlet {
PropertyGroupDao dao = vreq.getUnfilteredWebappDaoFactory().getPropertyGroupDao();
List<PropertyGroup> groups = dao.getPublicGroups(WITH_PROPERTIES);
sortForPickList(groups, vreq);
String json = new String();
int counter = 0;