Changeset 5156
- Timestamp:
- Oct 22, 2009, 9:09:52 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/credits.txt
r4974 r5156 1 1 $Id$ 2 2 3 The current BASE team is (at BASE 2.1 2.1release)3 The current BASE team is (at BASE 2.14.0 release) 4 4 {{{ 5 5 Jari Häkkinen -
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 } -
trunk/www/admin/annotationtypes/index.jsp
r5060 r5156 278 278 Unit unit = unitId == 0 ? null : Unit.getById(dc, unitId); 279 279 annotationType.setDefaultUnit(unit); 280 if (unit != null) cc.setRecent(unit, maxRecent);281 280 } 282 281
Note: See TracChangeset
for help on using the changeset viewer.