From fe67b75dcd749d132030e27c193c6a849f95362e Mon Sep 17 00:00:00 2001 From: colemanw Date: Fri, 2 Jun 2023 15:56:36 -0400 Subject: [PATCH] Metadata - Add missing html types/labels to the schema --- CRM/Contribute/DAO/ContributionProduct.php | 3 ++- CRM/Contribute/DAO/ContributionSoft.php | 3 ++- CRM/Core/DAO/Country.php | 3 ++- CRM/Core/DAO/Discount.php | 3 ++- CRM/Core/DAO/Job.php | 3 ++- CRM/Core/DAO/MappingField.php | 3 ++- CRM/Core/DAO/Menu.php | 3 ++- CRM/Core/DAO/MessageTemplate.php | 5 ++++- CRM/Core/DAO/OpenID.php | 6 +++++- CRM/Event/DAO/ParticipantPayment.php | 3 ++- CRM/Member/DAO/MembershipPayment.php | 3 ++- CRM/Pledge/DAO/PledgePayment.php | 3 ++- CRM/Price/DAO/LineItem.php | 4 +++- xml/schema/Contribute/ContributionProduct.xml | 1 + xml/schema/Contribute/ContributionSoft.xml | 1 + xml/schema/Core/Country.xml | 1 + xml/schema/Core/Discount.xml | 1 + xml/schema/Core/Job.xml | 1 + xml/schema/Core/MappingField.xml | 1 + xml/schema/Core/Menu.xml | 1 + xml/schema/Core/MessageTemplate.xml | 3 +++ xml/schema/Core/OpenID.xml | 4 ++++ xml/schema/Event/ParticipantPayment.xml | 1 + xml/schema/Member/MembershipPayment.xml | 1 + xml/schema/Pledge/PledgePayment.xml | 1 + xml/schema/Price/LineItem.xml | 2 ++ 26 files changed, 51 insertions(+), 13 deletions(-) diff --git a/CRM/Contribute/DAO/ContributionProduct.php b/CRM/Contribute/DAO/ContributionProduct.php index 50a6d61861..b3789b57ae 100644 --- a/CRM/Contribute/DAO/ContributionProduct.php +++ b/CRM/Contribute/DAO/ContributionProduct.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contribute/ContributionProduct.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:20ccf80c5280f4b58e393bf82835115a) + * (GenCodeChecksum:ffe5040ca99302edbb97acf3b183f9c7) */ /** @@ -213,6 +213,7 @@ class CRM_Contribute_DAO_ContributionProduct extends CRM_Core_DAO { 'localizable' => 0, 'FKClassName' => 'CRM_Contribute_DAO_Contribution', 'html' => [ + 'type' => 'EntityRef', 'label' => ts("Contribution"), ], 'add' => '1.4', diff --git a/CRM/Contribute/DAO/ContributionSoft.php b/CRM/Contribute/DAO/ContributionSoft.php index 2c08459852..7189e1119b 100644 --- a/CRM/Contribute/DAO/ContributionSoft.php +++ b/CRM/Contribute/DAO/ContributionSoft.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contribute/ContributionSoft.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:e51d55bf4217e9a9a49be631ff630366) + * (GenCodeChecksum:d205401be46596f6de807e4b45ab18fd) */ /** @@ -202,6 +202,7 @@ class CRM_Contribute_DAO_ContributionSoft extends CRM_Core_DAO { 'localizable' => 0, 'FKClassName' => 'CRM_Contribute_DAO_Contribution', 'html' => [ + 'type' => 'EntityRef', 'label' => ts("Contribution"), ], 'add' => '2.2', diff --git a/CRM/Core/DAO/Country.php b/CRM/Core/DAO/Country.php index c5c1788471..5e3245dd2a 100644 --- a/CRM/Core/DAO/Country.php +++ b/CRM/Core/DAO/Country.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Country.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:87bbe6fcf59d26d4fc8250c8dcb647ca) + * (GenCodeChecksum:b3efea686c5569dab5aa3924dc04275a) */ /** @@ -354,6 +354,7 @@ class CRM_Core_DAO_Country extends CRM_Core_DAO { 'localize_context' => 'country', 'FKClassName' => 'CRM_Core_DAO_Worldregion', 'html' => [ + 'type' => 'Select', 'label' => ts("World Region"), ], 'pseudoconstant' => [ diff --git a/CRM/Core/DAO/Discount.php b/CRM/Core/DAO/Discount.php index d56564cfd1..1d9810753e 100644 --- a/CRM/Core/DAO/Discount.php +++ b/CRM/Core/DAO/Discount.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Discount.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:b5b246e07e19dc11978ab693b60e27d6) + * (GenCodeChecksum:63b35b634e2bbd8e56e55e87c7d06f91) */ /** @@ -208,6 +208,7 @@ class CRM_Core_DAO_Discount extends CRM_Core_DAO { 'localizable' => 0, 'FKClassName' => 'CRM_Price_DAO_PriceSet', 'html' => [ + 'type' => 'Select', 'label' => ts("Price Set"), ], 'pseudoconstant' => [ diff --git a/CRM/Core/DAO/Job.php b/CRM/Core/DAO/Job.php index 4cc47171ef..24cd599a39 100644 --- a/CRM/Core/DAO/Job.php +++ b/CRM/Core/DAO/Job.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Job.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:ef4ea1e4947c94ccf363364f32416912) + * (GenCodeChecksum:aa30e47b3e824d879677194f87538a4f) */ /** @@ -223,6 +223,7 @@ class CRM_Core_DAO_Job extends CRM_Core_DAO { 'localizable' => 0, 'FKClassName' => 'CRM_Core_DAO_Domain', 'html' => [ + 'type' => 'Select', 'label' => ts("Domain"), ], 'pseudoconstant' => [ diff --git a/CRM/Core/DAO/MappingField.php b/CRM/Core/DAO/MappingField.php index d004323ec0..88756dc105 100644 --- a/CRM/Core/DAO/MappingField.php +++ b/CRM/Core/DAO/MappingField.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/MappingField.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:3df2e91108cdb428e82485a6640e1721) + * (GenCodeChecksum:8f7b866fac291f09aa847fd68700c9c2) */ /** @@ -324,6 +324,7 @@ class CRM_Core_DAO_MappingField extends CRM_Core_DAO { 'localizable' => 0, 'FKClassName' => 'CRM_Core_DAO_LocationType', 'html' => [ + 'type' => 'Select', 'label' => ts("Location type"), ], 'pseudoconstant' => [ diff --git a/CRM/Core/DAO/Menu.php b/CRM/Core/DAO/Menu.php index 1d8531821c..b7b6beba3b 100644 --- a/CRM/Core/DAO/Menu.php +++ b/CRM/Core/DAO/Menu.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Menu.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:002201c07590192edf274b05b8b42886) + * (GenCodeChecksum:cb35af506e5fb70dbdd88627f8b1dee4) */ /** @@ -314,6 +314,7 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO { 'localizable' => 0, 'FKClassName' => 'CRM_Core_DAO_Domain', 'html' => [ + 'type' => 'Select', 'label' => ts("Domain"), ], 'pseudoconstant' => [ diff --git a/CRM/Core/DAO/MessageTemplate.php b/CRM/Core/DAO/MessageTemplate.php index 5b10cda292..b39d92c083 100644 --- a/CRM/Core/DAO/MessageTemplate.php +++ b/CRM/Core/DAO/MessageTemplate.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/MessageTemplate.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:5787b720061fdeb38bca35e2e6c35730) + * (GenCodeChecksum:65e3ae090a60b085f252019d3d113ceb) */ /** @@ -421,6 +421,9 @@ class CRM_Core_DAO_MessageTemplate extends CRM_Core_DAO { 'entity' => 'MessageTemplate', 'bao' => 'CRM_Core_BAO_MessageTemplate', 'localizable' => 0, + 'html' => [ + 'type' => 'Select', + ], 'pseudoconstant' => [ 'optionGroupName' => 'pdf_format', 'keyColumn' => 'id', diff --git a/CRM/Core/DAO/OpenID.php b/CRM/Core/DAO/OpenID.php index be0e6f009a..70b66c6d42 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:046f25d8355b0276f8e43f34915bf5e4) + * (GenCodeChecksum:53b8b7ca863512c191623ab26381dd0d) */ /** @@ -186,6 +186,10 @@ class CRM_Core_DAO_OpenID extends CRM_Core_DAO { 'entity' => 'OpenID', 'bao' => 'CRM_Core_BAO_OpenID', 'localizable' => 0, + 'html' => [ + 'type' => 'Select', + 'label' => ts("Location Type"), + ], 'pseudoconstant' => [ 'table' => 'civicrm_location_type', 'keyColumn' => 'id', diff --git a/CRM/Event/DAO/ParticipantPayment.php b/CRM/Event/DAO/ParticipantPayment.php index 7f8e48b4b3..6f919672ef 100644 --- a/CRM/Event/DAO/ParticipantPayment.php +++ b/CRM/Event/DAO/ParticipantPayment.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Event/ParticipantPayment.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:9d5ff543a681f5ab73283c304b62316f) + * (GenCodeChecksum:ef2987af3276c7d47393ce4d0b295605) */ /** @@ -165,6 +165,7 @@ class CRM_Event_DAO_ParticipantPayment extends CRM_Core_DAO { 'localizable' => 0, 'FKClassName' => 'CRM_Contribute_DAO_Contribution', 'html' => [ + 'type' => 'EntityRef', 'label' => ts("Contribution"), ], 'add' => '2.0', diff --git a/CRM/Member/DAO/MembershipPayment.php b/CRM/Member/DAO/MembershipPayment.php index 5281ba51ba..34a7eda0e0 100644 --- a/CRM/Member/DAO/MembershipPayment.php +++ b/CRM/Member/DAO/MembershipPayment.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Member/MembershipPayment.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:022f6af50f08516e1e086faddcdf7fff) + * (GenCodeChecksum:da3ef13818ef6db9566c0ae8d68c4294) */ /** @@ -161,6 +161,7 @@ class CRM_Member_DAO_MembershipPayment extends CRM_Core_DAO { 'localizable' => 0, 'FKClassName' => 'CRM_Contribute_DAO_Contribution', 'html' => [ + 'type' => 'EntityRef', 'label' => ts("Contribution"), ], 'add' => '2.0', diff --git a/CRM/Pledge/DAO/PledgePayment.php b/CRM/Pledge/DAO/PledgePayment.php index 406be7328a..eb95f00794 100644 --- a/CRM/Pledge/DAO/PledgePayment.php +++ b/CRM/Pledge/DAO/PledgePayment.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Pledge/PledgePayment.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:6c0d4b7b1f908753ce551410a1357243) + * (GenCodeChecksum:a547e9089cb9b1d11fd408c1ffa88c10) */ /** @@ -224,6 +224,7 @@ class CRM_Pledge_DAO_PledgePayment extends CRM_Core_DAO { 'localizable' => 0, 'FKClassName' => 'CRM_Contribute_DAO_Contribution', 'html' => [ + 'type' => 'EntityRef', 'label' => ts("Contribution"), ], 'add' => '2.1', diff --git a/CRM/Price/DAO/LineItem.php b/CRM/Price/DAO/LineItem.php index 891dbc2bf2..5d2c38134f 100644 --- a/CRM/Price/DAO/LineItem.php +++ b/CRM/Price/DAO/LineItem.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Price/LineItem.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:90371022fa535bab6d13f1b6e3fc9b7c) + * (GenCodeChecksum:c3718ec4bc3ea2ef523c5c0be917d207) */ /** @@ -302,6 +302,7 @@ class CRM_Price_DAO_LineItem extends CRM_Core_DAO { 'localizable' => 0, 'FKClassName' => 'CRM_Contribute_DAO_Contribution', 'html' => [ + 'type' => 'EntityRef', 'label' => ts("Contribution"), ], 'add' => '4.5', @@ -324,6 +325,7 @@ class CRM_Price_DAO_LineItem extends CRM_Core_DAO { 'localizable' => 0, 'FKClassName' => 'CRM_Price_DAO_PriceField', 'html' => [ + 'type' => 'Select', 'label' => ts("Price Field"), ], 'pseudoconstant' => [ diff --git a/xml/schema/Contribute/ContributionProduct.xml b/xml/schema/Contribute/ContributionProduct.xml index 202324429d..7b86c9e2eb 100644 --- a/xml/schema/Contribute/ContributionProduct.xml +++ b/xml/schema/Contribute/ContributionProduct.xml @@ -42,6 +42,7 @@ true + EntityRef 1.4 diff --git a/xml/schema/Contribute/ContributionSoft.xml b/xml/schema/Contribute/ContributionSoft.xml index 6d081ca1eb..57c75d21b3 100644 --- a/xml/schema/Contribute/ContributionSoft.xml +++ b/xml/schema/Contribute/ContributionSoft.xml @@ -36,6 +36,7 @@ FK to contribution table. + EntityRef 2.2 diff --git a/xml/schema/Core/Country.xml b/xml/schema/Core/Country.xml index 73d1951587..3d7cf123eb 100644 --- a/xml/schema/Core/Country.xml +++ b/xml/schema/Core/Country.xml @@ -90,6 +90,7 @@ Foreign key to civicrm_worldregion.id. + Select 1.8 country diff --git a/xml/schema/Core/Discount.xml b/xml/schema/Core/Discount.xml index 34e8505335..c1113add76 100644 --- a/xml/schema/Core/Discount.xml +++ b/xml/schema/Core/Discount.xml @@ -64,6 +64,7 @@ FK to civicrm_price_set + Select 4.3 diff --git a/xml/schema/Core/Job.xml b/xml/schema/Core/Job.xml index 32c0ac3331..03214aa401 100644 --- a/xml/schema/Core/Job.xml +++ b/xml/schema/Core/Job.xml @@ -40,6 +40,7 @@ Which Domain is this scheduled job for + Select 4.1 diff --git a/xml/schema/Core/MappingField.xml b/xml/schema/Core/MappingField.xml index 10cf1c4d54..bed5a58e2a 100644 --- a/xml/schema/Core/MappingField.xml +++ b/xml/schema/Core/MappingField.xml @@ -74,6 +74,7 @@ Location type of this mapping, if required + Select 1.2 diff --git a/xml/schema/Core/Menu.xml b/xml/schema/Core/Menu.xml index 4ead8036c8..30a22d2e6e 100644 --- a/xml/schema/Core/Menu.xml +++ b/xml/schema/Core/Menu.xml @@ -33,6 +33,7 @@ Which Domain is this menu item for + Select 3.0 diff --git a/xml/schema/Core/MessageTemplate.xml b/xml/schema/Core/MessageTemplate.xml index ffeddfe302..a67839a281 100644 --- a/xml/schema/Core/MessageTemplate.xml +++ b/xml/schema/Core/MessageTemplate.xml @@ -141,6 +141,9 @@ pdf_format id + + Select + 3.4 diff --git a/xml/schema/Core/OpenID.xml b/xml/schema/Core/OpenID.xml index f5b9c1c54c..d7687868cc 100644 --- a/xml/schema/Core/OpenID.xml +++ b/xml/schema/Core/OpenID.xml @@ -47,6 +47,10 @@ display_name Which Location does this email belong to. + + + Select + 2.0 diff --git a/xml/schema/Event/ParticipantPayment.xml b/xml/schema/Event/ParticipantPayment.xml index fa8437a724..ec837b0589 100644 --- a/xml/schema/Event/ParticipantPayment.xml +++ b/xml/schema/Event/ParticipantPayment.xml @@ -47,6 +47,7 @@ FK to contribution table. + EntityRef 2.0 diff --git a/xml/schema/Member/MembershipPayment.xml b/xml/schema/Member/MembershipPayment.xml index f0859fd348..f9c6e7778b 100644 --- a/xml/schema/Member/MembershipPayment.xml +++ b/xml/schema/Member/MembershipPayment.xml @@ -47,6 +47,7 @@ FK to contribution table. + EntityRef 2.0 diff --git a/xml/schema/Pledge/PledgePayment.xml b/xml/schema/Pledge/PledgePayment.xml index 314b4da9d0..337e0dfdc8 100644 --- a/xml/schema/Pledge/PledgePayment.xml +++ b/xml/schema/Pledge/PledgePayment.xml @@ -49,6 +49,7 @@ FK to contribution table. + EntityRef 2.1 diff --git a/xml/schema/Price/LineItem.xml b/xml/schema/Price/LineItem.xml index f53364ebcb..d34c93dfbd 100644 --- a/xml/schema/Price/LineItem.xml +++ b/xml/schema/Price/LineItem.xml @@ -54,6 +54,7 @@ FK to civicrm_contribution + EntityRef 4.5 @@ -77,6 +78,7 @@ + Select 1.7 -- 2.25.1