<div dir="ltr"><div>Hi David,<br><br></div><div>Not obvious why the problem isn&#39;t reproducible, but if you&#39;re using a DBIC::ResultSet directly in TT then it would be worth trying to confirm that $sub_id is definitely what you think it is (i.e. an integer rather than an object).<br>
</div><div><br></div><div>[% USE Dumper %]<br></div><div>[% IF search.submission.sub_id != submission.sub_id %]<br></div><div><div>  &lt;pre&gt;SCH-SUB-ID: [% Dumper.dump( search.submission.sub_id ) %]&lt;/pre&gt;<br></div>

  &lt;pre&gt;SUB-ID: [% Dumper.dump( submission.sub_id ) %]&lt;/pre&gt;<br></div><div class="gmail_extra">
  [% THROW mismatch &quot;Fatal Error SCH-SUB-ID != SUB-ID&quot; %]<br>
[% END %]<br><br>As a general rule, I would try and flatten DBIC objects into a simple data structure in your Controller and take as much business logic as possible out of your view.<br><br></div><div class="gmail_extra">
Best,<br></div><div class="gmail_extra"><br>Ian<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">-- <br>Dr Ian Sillitoe<br>Orengo Group, Structural and Molecular Biology<br>University College London<br>
<br>
</div></div>