<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.4 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2013 |
+--------------------------------------------------------------------+
// we dont want to store the sortByCharacter in the formValue, it is more like
// a filter on the result set
// this filter is reset if we click on the search button
- if ($this->_sortByCharacter !== NULL
- && empty($_POST)
- ) {
+ if ($this->_sortByCharacter !== NULL && empty($_POST)) {
if (strtolower($this->_sortByCharacter) == 'all') {
$this->_formValues['sortByCharacter'] = NULL;
}
$this->_formValues['sortByCharacter'] = $this->_sortByCharacter;
}
}
+ else {
+ $this->_sortByCharacter = NULL;
+ }
CRM_Core_BAO_CustomValue::fixFieldValueOfTypeMemo($this->_formValues);
/**
* normalize default values for multiselect plugins
*
- * @return void
+ * @param $defaults array
+ * @return array
* @access private
*/
function normalizeDefaultValues(&$defaults) {