Details
-
Type: Patch
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.0.8
-
Fix Version/s: 4.1.0
-
Component/s: Core CiviCRM
-
Labels:None
Description
From IRC
artfulrobot: hi all. is there any way for a Search Task to access the parameters supplied by the user to a Custom Search? I have the situation where a user is having to enter the same thing twice, once at search and once at task stage.
dlobo: artfulrobot: yes there should be u mean the search params right
artfulrobot: yes, I have a custom search which (among other things) asks for a newsletter issue no. the search uses this to make sure we've not mailed that before. the task, then asks for it again, so it can record it. the task is a custom one, too (used the hook)
dlobo: artfulrobot: check: CRM/Contact/Form/Task.php ... function preProcessCommon ... the first few lines... where we get all the values submitted from the search ... if u inherit from Task.php ... i would recommend u make $values a class variable (since other folks might also want to use it) and submit it back as an issue /patch and we'l apply it for 4.2
Well here's my offering. Works for me and I'm v. happy about it!