Changeset 5156


Ignore:
Timestamp:
Oct 22, 2009, 9:09:52 AM (14 years ago)
Author:
Nicklas Nordborg
Message:

Merged pre-2.14-releases to the trunk

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/credits.txt

    r4974 r5156  
    11$Id$
    22
    3 The current BASE team is (at BASE 2.12.1 release)
     3The current BASE team is (at BASE 2.14.0 release)
    44{{{
    55Jari Häkkinen
  • trunk/www/admin/annotationtypes/edit_annotationtype.jsp

    r4889 r5156  
    8080    title = "Create annotation type";
    8181    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();
    9383    cc.removeObject("item");
    9484  }
  • trunk/www/admin/annotationtypes/index.jsp

    r5060 r5156  
    278278        Unit unit = unitId == 0 ? null : Unit.getById(dc, unitId);
    279279        annotationType.setDefaultUnit(unit);
    280         if (unit != null) cc.setRecent(unit, maxRecent);
    281280      }
    282281     
Note: See TracChangeset for help on using the changeset viewer.