Skip to content
Snippets Groups Projects
Commit e0600200 authored by jaapjansma's avatar jaapjansma
Browse files

Fixed export from Smart Groups, by manage groups --> contacts --> export CSV

parent 95762aa7
No related branches found
No related tags found
No related merge requests found
......@@ -88,4 +88,37 @@ class CRM_Contact_Controller_DataProcessorContactSearch extends CRM_Core_Control
return 'CRM_Contact_Selector_DataProcessorContactSearch';
}
/**
* @param string $name
* @param bool $addSequence
* @param bool $ignoreKey
*
* @return mixed|string
*/
public function key($name, $addSequence = FALSE, $ignoreKey = FALSE) {
$config = CRM_Core_Config::singleton();
if (
$ignoreKey ||
(isset($config->keyDisable) && $config->keyDisable)
) {
return NULL;
}
$key = CRM_Utils_Array::value('qfKey', $_REQUEST, NULL);
if (!$key && $_SERVER['REQUEST_METHOD'] === 'GET') {
$key = CRM_Core_Key::get($name, $addSequence);
}
else if (!$_SERVER['REQUEST_METHOD'] === 'POST' || !isset($_REQUEST['ssId'])) {
$_key = CRM_Core_Key::validate($key, $name, $addSequence);
}
if (!$key) {
$this->invalidKey();
}
$this->_key = $key;
return $key;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment