Body: <p>I have a problem that is reproducible on the 4.6 Drupal demo site.</p>
  
  <p>It has to do with the Conduct Survey screen in CiviCampaign. I cannot search for people to reserve after interviewing people.</p>
  
  <p>To reproduce ....</p>
  
  <ol>
  <li>Start with a Campaign and a Survey</li>
  <li>Visit Conduct Survey and click Search on the Reserve Respondents tab</li>
  <li>Click on the Interview Respondents tab</li>
  <li>Click on the Reserve Respondents tab</li>
  <li>Click Search on the Reserve Respondents tab</li>
  </ol>
  
  <p>I expect that steps 2 and 5 should give the same response - present a list of contacts to Reserve. That happens for Step 2 but not for Step 5.</p>
  
  <p>Using Firebug I see the following at Step 2 ...</p>
  
  <pre><code>GET  https://example.org/civicrm/campaign/vote?search=1&amp;snippet=4&amp;sid=99&amp;cid=99999&amp;qfKey=xxxxx_9999
  POST https://example.org/civicrm/ajax/rest?snippet=4&amp;className=CRM_Campaign_Page_AJAX&amp;fnName=voterList
  </code></pre>
  
  <p>.... while at Step 5 I see only ...</p>
  
  <pre><code>GET  https://example.org/civicrm/campaign/vote?search=1&amp;snippet=4&amp;sid=99&amp;cid=99999&amp;qfKey=xxxxx_9999
  </code></pre>
  
  <p>The only clues I have is that the qfKey has a different value for '_9999' at the end, and I get the following error on my Javascript console at step 3 ...</p>
  
  <p>TypeError: invalid 'in' operand a
  <a href="https://example.org/sites/default/files/js/js_mSqimfUYz_VZK2olecI6CNgGUcoseWz2Uf-IxjMP5mA.js" rel="nofollow">https://example.org/sites/default/files/js/js_mSqimfUYz_VZK2olecI6CNgGUcoseWz2Uf-IxjMP5mA.js</a>
  Line 1079</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-01T13:06:28.413Z
Comments.Text: Clue #1 - the problem doesn't occur if I have no respondents reserved
Comments.UserDisplayName: Ken West
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-01T13:50:02.750Z
Comments.Text: Clue #2 - the Javascript error doesn't occur if no respondents are reserved
Comments.UserDisplayName: Ken West
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-01T13:51:31.580Z
Comments.Text: Clue #3 the TPL file templates/CRM/Campaign/Page/Vote.tpl includes the following comment at lines 36 and 40 - "very crude refresh of tabs - fixme: use datatable native refresh method" and "fixme - can't search more than once! Uncomment this code, switching tabs gives qfkey error"
Comments.UserDisplayName: Ken West
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-01T14:02:20.090Z
Comments.Text: The Vote.tpl file was modified by @colemanw as part of CRM-13997. Perhaps he can shed some light?
Comments.UserDisplayName: Ken West
Tags: <civicampaign>
Title: Conduct survey - can't search to reserve after interviewing
ThreadText: # Conduct survey - can't search to reserve after interviewing
  
  (Asked by: username_0 on 2015-06-22)
  
  I have a problem that is reproducible on the 4.6 Drupal demo site.
  
  It has to do with the Conduct Survey screen in CiviCampaign. I cannot search for people to reserve after interviewing people.
  
  To reproduce ....
  
  1. Start with a Campaign and a Survey
  2. Visit Conduct Survey and click Search on the Reserve Respondents tab
  3. Click on the Interview Respondents tab
  4. Click on the Reserve Respondents tab
  5. Click Search on the Reserve Respondents tab
  
  I expect that steps 2 and 5 should give the same response - present a list of contacts to Reserve. That happens for Step 2 but not for Step 5.
  
  Using Firebug I see the following at Step 2 ...
  
  ```
  GET  https://example.org/civicrm/campaign/vote?search=1&snippet=4&sid=99&cid=99999&qfKey=xxxxx_9999
  POST https://example.org/civicrm/ajax/rest?snippet=4&className=CRM_Campaign_Page_AJAX&fnName=voterList
  
  ```
  
  .... while at Step 5 I see only ...
  
  ```
  GET  https://example.org/civicrm/campaign/vote?search=1&snippet=4&sid=99&cid=99999&qfKey=xxxxx_9999
  
  ```
  
  The only clues I have is that the qfKey has a different value for '\_9999' at the end, and I get the following error on my Javascript console at step 3 ...
  
  TypeError: invalid 'in' operand a
  <https://example.org/sites/default/files/js/js_mSqimfUYz_VZK2olecI6CNgGUcoseWz2Uf-IxjMP5mA.js>
  Line 1079
  
  **Tags:** civicampaign
  
  > **Comments:**
  > **username_0**: Clue #1 - the problem doesn't occur if I have no respondents reserved  
  > **username_0**: Clue #2 - the Javascript error doesn't occur if no respondents are reserved  
  > **username_0**: Clue #3 the TPL file templates/CRM/Campaign/Page/Vote.tpl includes the following comment at lines 36 and 40 - "very crude refresh of tabs - fixme: use datatable native refresh method" and "fixme - can't search more than once! Uncomment this code, switching tabs gives qfkey error"  
  > **username_0**: The Vote.tpl file was modified by @colemanw as part of CRM-13997. Perhaps he can shed some light?  
  
  ---
  
  ## 0 answers
  
  