X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FDAO.php;h=2e0f4ab65ac58951238b913b109b1b8de487d65c;hb=2c85a284a6b071b3d6b118d62f604e5cae917e94;hp=ae59e51092f162d5f91a77d9c4bf0b7c0912239e;hpb=e9d7f716336ba738e076c840fb89b27bb324b736;p=civicrm-core.git diff --git a/CRM/Core/DAO.php b/CRM/Core/DAO.php index ae59e51092..2e0f4ab65a 100644 --- a/CRM/Core/DAO.php +++ b/CRM/Core/DAO.php @@ -1264,6 +1264,11 @@ SELECT contact_id $numObjects = 1, $createOnly = FALSE ) { + //this is a test function also backtrace is set for the test suite it sometimes unsets itself + // so we re-set here in case + $config = CRM_Core_Config::singleton(); + $config->backtrace = TRUE; + static $counter = 0; CRM_Core_DAO::$_testEntitiesToSkip = array( 'CRM_Core_DAO_Worldregion', @@ -1427,8 +1432,12 @@ SELECT contact_id static function deleteTestObjects($daoName, $params = array( )) { + //this is a test function also backtrace is set for the test suite it sometimes unsets itself + // so we re-set here in case + $config = CRM_Core_Config::singleton(); + $config->backtrace = TRUE; - $object = new $daoName ( ); + $object = new $daoName(); $object->id = CRM_Utils_Array::value('id', $params); $deletions = array(); // array(array(0 => $daoName, 1 => $daoParams))