From 5058d73ddec7bc414ad9d1be744f22dd12d9c16b Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Thu, 12 Mar 2020 17:33:09 +0000 Subject: [PATCH] add pseudoconstant for location type --- CRM/Core/DAO/OpenID.php | 7 ++++++- xml/schema/Core/OpenID.xml | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CRM/Core/DAO/OpenID.php b/CRM/Core/DAO/OpenID.php index 56fc736a9c..fcce8503fb 100644 --- a/CRM/Core/DAO/OpenID.php +++ b/CRM/Core/DAO/OpenID.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/OpenID.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:4baa608e9caa3e118ac02d28032b8bc2) + * (GenCodeChecksum:2afae5cc76cd5df22b314276138fc122) */ /** @@ -135,6 +135,11 @@ class CRM_Core_DAO_OpenID extends CRM_Core_DAO { 'entity' => 'OpenID', 'bao' => 'CRM_Core_BAO_OpenID', 'localizable' => 0, + 'pseudoconstant' => [ + 'table' => 'civicrm_location_type', + 'keyColumn' => 'id', + 'labelColumn' => 'display_name', + ], ], 'openid' => [ 'name' => 'openid', diff --git a/xml/schema/Core/OpenID.xml b/xml/schema/Core/OpenID.xml index 1aa5c579f6..876aeca4b0 100644 --- a/xml/schema/Core/OpenID.xml +++ b/xml/schema/Core/OpenID.xml @@ -35,6 +35,11 @@ location_type_id OpenID Location Type int unsigned + + civicrm_location_type
+ id + display_name +
Which Location does this email belong to. 2.0 -- 2.25.1