Changeset 3595


Ignore:
Timestamp:
Jul 24, 2007, 1:11:51 PM (14 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #694: Creating a new plate event generates an exception

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/lims/plates/events/edit_event.jsp

    r2978 r3595  
    102102    eventTypesQuery.order(Orders.asc(Hql.property("ordinal")));
    103103    eventTypesQuery.join(Hql.leftJoin(null, "plateEvents", "event",
    104       Restrictions.eq(Hql.property("event", "plate"), Hql.entity(plate)), false));
     104      Restrictions.eq(Hql.property("event", "plate.id"), Expressions.integer(plate.getId())), false));
    105105    eventTypesQuery.restrict(Restrictions.eq(Hql.alias("event"), null));
    106106    eventTypes = eventTypesQuery.list(dc);
Note: See TracChangeset for help on using the changeset viewer.