Changeset 5156 for trunk/www/admin/annotationtypes/edit_annotationtype.jsp
- Timestamp:
- Oct 22, 2009, 9:09:52 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/admin/annotationtypes/edit_annotationtype.jsp
r4889 r5156 80 80 title = "Create annotation type"; 81 81 valueType = Type.valueOf(request.getParameter("value_type")); 82 if (valueType.isNumerical()) unitQuery = Unit.getQuery(); 83 84 int recentQuantityId = Values.getInt(cc.getRecent(Item.QUANTITY.name(), 0)); 85 currentQuantityId = Values.getInt(cc.getPropertyValue("quantity"), recentQuantityId); 86 87 if (cc.getPropertyFilter("defaultUnit.name") != null) 88 { 89 Unit currentUnit = Base.getFirstMatching(dc, Unit.getQuery(), "name", cc.getPropertyFilter("defaultUnit.name")); 90 if (currentUnit != null) currentUnitId = currentUnit.getId(); 91 } 92 if (currentUnitId == 0) currentUnitId = Values.getInt(cc.getRecent(Item.UNIT.name(), 0)); 82 if (valueType.isNumerical()) unitQuery = Unit.getQuery(); 93 83 cc.removeObject("item"); 94 84 }
Note: See TracChangeset
for help on using the changeset viewer.