case 'case_from_start_date_low':
case 'case_from_start_date_high':
+ CRM_Core_Error::deprecatedFunctionWarning('case_from is deprecated');
$query->dateQueryBuilder($values,
'civicrm_case', 'case_from_start_date', 'start_date', 'Start Date'
);
case 'case_to_end_date_low':
case 'case_to_end_date_high':
+ CRM_Core_Error::deprecatedFunctionWarning('case_to is deprecated');
$query->dateQueryBuilder($values,
'civicrm_case', 'case_to_end_date', 'end_date', 'End Date'
);
if (
!in_array($id, $nonLegacyDateFields) && (
preg_match('/_date_relative$/', $id) ||
- $id == 'event_relative' ||
- $id == 'case_from_relative' ||
- $id == 'case_to_relative')
+ $id == 'event_relative')
) {
if ($id == 'event_relative') {
$fromRange = 'event_start_date_low';
$toRange = 'event_end_date_high';
}
- elseif ($id == 'case_from_relative') {
- $fromRange = 'case_from_start_date_low';
- $toRange = 'case_from_start_date_high';
- }
- elseif ($id == 'case_to_relative') {
- $fromRange = 'case_to_end_date_low';
- $toRange = 'case_to_end_date_high';
- }
else {
$dateComponent = explode('_date_relative', $id);
$fromRange = "{$dateComponent[0]}_date_low";
elseif (
!in_array($id, $nonLegacyDateFields) && (
preg_match('/_date_relative$/', $id) ||
- $id == 'event_relative' ||
- $id == 'case_from_relative' ||
- $id == 'case_to_relative')
+ $id == 'event_relative')
) {
// Already handled in previous loop
continue;
$specialDateFields = [
'event_start_date_low' => 'event_date_low',
'event_end_date_high' => 'event_date_high',
- 'case_from_start_date_low' => 'case_from_date_low',
- 'case_from_start_date_high' => 'case_from_date_high',
- 'case_to_end_date_low' => 'case_to_date_low',
- 'case_to_end_date_high' => 'case_to_date_high',
];
$fv = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_SavedSearch', $id, 'form_values');
$relativeDates = ['relative_dates' => []];
$specialDateFields = [
'event_relative',
- 'case_from_relative',
- 'case_to_relative',
'participant_relative',
'log_date_relative',
'birth_date_relative',