Skip to content
Snippets Groups Projects
Unverified Commit 8efb42a9 authored by Eileen McNaughton's avatar Eileen McNaughton Committed by GitHub
Browse files

Merge pull request #27360 from colemanw/pseudoconstantGuard-5.64

PseudoConstant - Prevent fatal when entity not available
parents eb19c340 36b2dec8
No related branches found
No related tags found
No related merge requests found
......@@ -208,8 +208,10 @@ class CRM_Core_PseudoConstant {
}
// Core field: load schema
$dao = new $daoName();
$fieldSpec = $dao->getFieldSpec($fieldName);
if (class_exists($daoName)) {
$dao = new $daoName();
$fieldSpec = $dao->getFieldSpec($fieldName);
}
// Return false if field doesn't exist.
if (empty($fieldSpec)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment