Skip to content

Commit

Permalink
DAO - Update field labels for activity_contact & relationship_cache e…
Browse files Browse the repository at this point in the history
  • Loading branch information
colemanw committed Jan 21, 2021
1 parent 2f61656 commit 344c48b
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 7 deletions.
9 changes: 5 additions & 4 deletions CRM/Activity/DAO/ActivityContact.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Generated from xml/schema/CRM/Activity/ActivityContact.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:3f147b2507b1e11a7df971be191161d1)
* (GenCodeChecksum:1263921d2a6832e26c5a7e34c684e35b)
*/

/**
Expand Down Expand Up @@ -52,7 +52,7 @@ class CRM_Activity_DAO_ActivityContact extends CRM_Core_DAO {
public $contact_id;

/**
* Nature of this contact's role in the activity: 1 assignee, 2 creator, 3 focus or target.
* Determines the contact's role in the activity (source, target, or assignee).
*
* @var int
*/
Expand Down Expand Up @@ -146,15 +146,16 @@ public static function &fields() {
'record_type_id' => [
'name' => 'record_type_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Record Type ID'),
'description' => ts('Nature of this contact\'s role in the activity: 1 assignee, 2 creator, 3 focus or target.'),
'title' => ts('Activity Contact Type'),
'description' => ts('Determines the contact\'s role in the activity (source, target, or assignee).'),
'where' => 'civicrm_activity_contact.record_type_id',
'table_name' => 'civicrm_activity_contact',
'entity' => 'ActivityContact',
'bao' => 'CRM_Activity_BAO_ActivityContact',
'localizable' => 0,
'html' => [
'type' => 'Select',
'label' => ts("Contact Role"),
],
'pseudoconstant' => [
'optionGroupName' => 'activity_contacts',
Expand Down
8 changes: 7 additions & 1 deletion CRM/Contact/DAO/RelationshipCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Generated from xml/schema/CRM/Contact/RelationshipCache.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:ba039fcadc13e48749f965343301ec1d)
* (GenCodeChecksum:ec899f1ccb7f617701d7108dc4282691)
*/

/**
Expand Down Expand Up @@ -246,6 +246,9 @@ public static function &fields() {
'entity' => 'RelationshipCache',
'bao' => 'CRM_Contact_BAO_RelationshipCache',
'localizable' => 0,
'html' => [
'label' => ts("Relationship to contact"),
],
'pseudoconstant' => [
'callback' => 'CRM_Core_PseudoConstant::relationshipTypeOptions',
],
Expand Down Expand Up @@ -280,6 +283,9 @@ public static function &fields() {
'entity' => 'RelationshipCache',
'bao' => 'CRM_Contact_BAO_RelationshipCache',
'localizable' => 0,
'html' => [
'label' => ts("Relationship from contact"),
],
'pseudoconstant' => [
'callback' => 'CRM_Core_PseudoConstant::relationshipTypeOptions',
],
Expand Down
5 changes: 3 additions & 2 deletions xml/schema/Activity/ActivityContact.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,14 @@
<field>
<name>record_type_id</name>
<type>int unsigned</type>
<title>Record Type ID</title>
<comment>Nature of this contact's role in the activity: 1 assignee, 2 creator, 3 focus or target.</comment>
<title>Activity Contact Type</title>
<comment>Determines the contact's role in the activity (source, target, or assignee).</comment>
<pseudoconstant>
<optionGroupName>activity_contacts</optionGroupName>
</pseudoconstant>
<html>
<type>Select</type>
<label>Contact Role</label>
</html>
<add>4.4</add>
</field>
Expand Down
6 changes: 6 additions & 0 deletions xml/schema/Contact/RelationshipCache.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@
<length>64</length>
<comment>name for relationship of near_contact to far_contact.</comment>
<add>5.29</add>
<html>
<label>Relationship to contact</label>
</html>
<pseudoconstant>
<callback>CRM_Core_PseudoConstant::relationshipTypeOptions</callback>
</pseudoconstant>
Expand Down Expand Up @@ -124,6 +127,9 @@
<length>64</length>
<comment>name for relationship of far_contact to near_contact.</comment>
<add>5.29</add>
<html>
<label>Relationship from contact</label>
</html>
<pseudoconstant>
<callback>CRM_Core_PseudoConstant::relationshipTypeOptions</callback>
</pseudoconstant>
Expand Down

0 comments on commit 344c48b

Please sign in to comment.