Case contact list.html bug 305

From PikaDocs

A bug in subtemplates/case_contact_list.html. Definitely exists in Pika 3.05d. Not sure about other versions.

That page has 3 forms. The first form is located on the left side of the screen and allows you to adjust the name or other parameters and click Search Names or Browse Names again. However the form does not pass along the hidden relation_code variable. This leads to records in the conflict table having a relation_code of 0.

To fix, edit subtemplates/case_contact_list.html

Find this section, roughly at line 25:

<input type="hidden" name="order_field" value="%%[order_field]%%"/>
<input type="hidden" name="case_id" value="%%[case_id]%%"/>

Immediately before it, add this:

<!-- Andrew Cameron 2006/9/13 This next line was missing so when you had to click Search or Browse Names again on this screen, the relation code wasn't getting passed. Leading to a relation_code of 0 getting put in. Then if you transfer case to Lawline, the OPs don't make it across 
This fix should make sure the relation_code goes along if you click Search names or Browse names a 2nd time -->
<input type="hidden" name="relation_code" value="%%[relation_code]%%">
                

Original entry by Andrew Cameron 2006/8/9
Legal Services Lawline of Vermont (http://www.lawlinevt.org/) and Vermont Legal Aid (http://www.vtlegalaid.org/)