VIVO-804: fix ordering of property groups
This commit is contained in:
parent
8510505424
commit
638699f08e
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue