Skip to content

Commit

Permalink
Merge pull request #16754 from pradpnayak/priceSetSchema
Browse files Browse the repository at this point in the history
Added pseudoconstant for priceset
  • Loading branch information
eileenmcnaughton authored Mar 12, 2020
2 parents 62cc144 + a0fc596 commit 7dee44b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CRM/Core/DAO/Discount.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Generated from xml/schema/CRM/Core/Discount.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:65e21ec2893577e8026e3194864cdad3)
* (GenCodeChecksum:856b526f1fe395e4460ebf886a258d4f)
*/

/**
Expand Down Expand Up @@ -152,6 +152,11 @@ public static function &fields() {
'bao' => 'CRM_Core_BAO_Discount',
'localizable' => 0,
'FKClassName' => 'CRM_Price_DAO_PriceSet',
'pseudoconstant' => [
'table' => 'civicrm_price_set',
'keyColumn' => 'id',
'labelColumn' => 'title',
],
],
'start_date' => [
'name' => 'start_date',
Expand Down
5 changes: 5 additions & 0 deletions xml/schema/Core/Discount.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@
<title>Discount Name</title>
<type>int unsigned</type>
<required>true</required>
<pseudoconstant>
<table>civicrm_price_set</table>
<keyColumn>id</keyColumn>
<labelColumn>title</labelColumn>
</pseudoconstant>
<export>true</export>
<comment>FK to civicrm_price_set</comment>
<add>4.3</add>
Expand Down

0 comments on commit 7dee44b

Please sign in to comment.