Ignore:
Timestamp:
Sep 5, 2007, 11:29:16 AM (14 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #740: Missing AnyToAny? item causes ItemNotFoundException? when viewing a transformation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4-stable/www/common/anytoany/list_anytoany.jsp

    r3675 r3707  
    3737  import="net.sf.basedb.core.ItemResultList"
    3838  import="net.sf.basedb.core.PermissionDeniedException"
     39  import="net.sf.basedb.core.ItemNotFoundException"
    3940  import="net.sf.basedb.core.query.Orders"
    4041  import="net.sf.basedb.core.query.Hql"
     
    105106            BasicItem to = null;
    106107            boolean readTo = true;
     108            boolean missingTo = false;
    107109            try
    108110            {
     
    112114            {
    113115              readTo = false;
     116            }
     117            catch (ItemNotFoundException ex)
     118            {
     119              missingTo = true;
    114120            }
    115121           
     
    128134            {
    129135              toLink = "<i>- denied -</i>";
     136            }
     137            else if (missingTo)
     138            {
     139              toLink = "<i>- missing -</i> (" + ata.getToType().toString() + "; id=" + ata.getToId() + ")";
    130140            }
    131141            else if (to == null)
Note: See TracChangeset for help on using the changeset viewer.