civicrm/civicrm-core — pull request #759 by ravishnair (2013-05-15 13:52:27+00:00)
Title: -- fix for CRM-12514

The bug is because the condition for 'activity_survey_id' was missing in $queryParams as the surveyID was going empty. This is because its value is taken from url when the petition activity search is done using which it lists out all the relevant petition activities. But, after we select all records(ts_all) radio button & "Export Activities" task and click on Go, the surveyID no longer persists thus resulting in all activities in the export file. I have made the fix by setting the value when it is taken from the url and getting it & assigning it to 'activity_survey_id' which will take the value and build the $queryParams.