From 56616a732bc1a1e7da6b46a7fc519374ef86c3e9 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Fri, 28 Feb 2020 12:14:53 +0000 Subject: [PATCH] Add pseudoconstant for priceset --- CRM/Price/DAO/PriceField.php | 7 ++++++- xml/schema/Price/PriceField.xml | 6 +++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CRM/Price/DAO/PriceField.php b/CRM/Price/DAO/PriceField.php index 0b988900fa..56dc69ac28 100644 --- a/CRM/Price/DAO/PriceField.php +++ b/CRM/Price/DAO/PriceField.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Price/PriceField.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:60b0dde8a1e8d4933abc6df200d99809) + * (GenCodeChecksum:88307b88d5be27887068a778e663b0a2) */ /** @@ -200,6 +200,11 @@ class CRM_Price_DAO_PriceField extends CRM_Core_DAO { 'bao' => 'CRM_Price_BAO_PriceField', 'localizable' => 0, 'FKClassName' => 'CRM_Price_DAO_PriceSet', + 'pseudoconstant' => [ + 'table' => 'civicrm_price_set', + 'keyColumn' => 'id', + 'labelColumn' => 'title', + ], ], 'name' => [ 'name' => 'name', diff --git a/xml/schema/Price/PriceField.xml b/xml/schema/Price/PriceField.xml index 57efda8f90..c3ac6dd662 100644 --- a/xml/schema/Price/PriceField.xml +++ b/xml/schema/Price/PriceField.xml @@ -24,6 +24,11 @@ int unsigned true FK to civicrm_price_set + + civicrm_price_set
+ id + title +
1.8 @@ -224,4 +229,3 @@ 3.3 - -- 2.25.1