<div dir="ltr"><div>Hi David,<br><br></div><div>Not obvious why the problem isn't reproducible, but if you'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> <pre>SCH-SUB-ID: [% Dumper.dump( search.submission.sub_id ) %]</pre><br></div>
<pre>SUB-ID: [% Dumper.dump( submission.sub_id ) %]</pre><br></div><div class="gmail_extra">
[% THROW mismatch "Fatal Error SCH-SUB-ID != SUB-ID" %]<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>