From 2444854d8714bcf4ad1292ecd581fed7b58a028a Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 6 Jan 2015 11:25:41 -0800 Subject: [PATCH] CRM_Core_DAO::assignTestFK() - Fix FK checks on BAOs --- CRM/Core/DAO.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/DAO.php b/CRM/Core/DAO.php index ad7a213312..7b49a19fb2 100644 --- a/CRM/Core/DAO.php +++ b/CRM/Core/DAO.php @@ -121,7 +121,7 @@ class CRM_Core_DAO extends DB_DataObject { $required = CRM_Utils_Array::value('required', $fieldDef); $FKClassName = CRM_Utils_Array::value('FKClassName', $fieldDef); $dbName = $fieldDef['name']; - $daoName = get_class($this); + $daoName = str_replace('_BAO_', '_DAO_', get_class($this)); // skip the FK if it is not required // if it's contact id we should create even if not required -- 2.25.1