civicrm/civicrm-core — pull request #2114 by eileenmcnaughton (2013-11-28 00:14:52+00:00)
Title: Readability on createActivites

I was trying to debug something on target create & couldn't make sense of this fn so I interpreted it & found that most of it was easily removed. I have tested on a single contact & search results & activity is created (although on master it was not visible on the contact tab either before or after the changes.

NB it would be testable if the relevant formValues were passed in rather than the form