+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2018 |
+ | Copyright CiviCRM LLC (c) 2004-2019 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
$addlCheck = \CRM_Utils_SQL_Select::from($query['casAddlCheckFrom'])
->select('*')
- ->merge($query, array('params', 'wheres'))// why only where? why not the joins?
+ ->merge($query, array('params', 'wheres', 'joins'))
->merge($this->prepareRepetitionEndFilter($query['casDateField']))
->limit(1)
->strict()