Changeset 5049


Ignore:
Timestamp:
Aug 17, 2009, 1:17:51 PM (13 years ago)
Author:
Martin Svensson
Message:

Fixes #1356 Blank page when listing wells for a plate.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/net/sf/basedb/core/Well.java

    r4889 r5049  
    330330 
    331331  /**
     332    Get the reporter in this well.
     333    The initialization of the reporter can be forced.
     334      @param forceInitialization TRUE if the initialization of
     335        the reporter should be forced, FALSE otherwise.
     336      @return A <code>ReporterData</code> object or null if no
     337      reporter has been specified.
     338      @since 2.13
     339   */
     340  public ReporterData getReporter(boolean forceInitialization)
     341  {
     342    if (!getSessionControl().hasPermission(Permission.READ, Item.REPORTER))
     343    {
     344      throw new PermissionDeniedException(Permission.READ, "Reporter");
     345    }
     346    ReporterData reporter = getData().getReporter();
     347    if (forceInitialization) org.hibernate.Hibernate.initialize(reporter);
     348    HibernateUtil.evictData(getDbControl().getHibernateSession(), reporter);   
     349    return reporter;
     350  }
     351 
     352  /**
    332353    Set the reporter of this well.
    333354    @param reporter The new reporter or null if the reporter is unknown
     
    352373    getData().setReporter(reporter);
    353374  }
    354 
    355375}
  • trunk/www/lims/plates/wells/list_wells.jsp

    r4889 r5049  
    117117  {
    118118    final ItemQuery<Well> query = Base.getConfiguredQuery(dc, cc, true, plate.getWells(), mode);
    119     query.join(Hql.leftJoin(null, "reporter", "rpt", null, false));
     119    query.join(Hql.leftJoin(null, "reporter", "rpt", null, true));
    120120    if (!"row".equals(cc.getSortProperty())) query.order(Orders.asc(Hql.property("row")));
    121121    if (!"column".equals(cc.getSortProperty())) query.order(Orders.asc(Hql.property("column")));
Note: See TracChangeset for help on using the changeset viewer.