some change that was done on live :(

This commit is contained in:
dh_6sdxgm 2021-08-06 04:40:48 -07:00
parent 8d345ce1f3
commit 0fe7bac594

View File

@ -26,7 +26,6 @@ function opencase_no_cases_help($route_name, RouteMatchInterface $route_match) {
function opencase_no_cases_entity_base_field_info($entity_type) { function opencase_no_cases_entity_base_field_info($entity_type) {
if ($entity_type->id() === 'oc_activity') { if ($entity_type->id() === 'oc_activity') {
$fields = array();
$fields['actors_involved'] = BaseFieldDefinition::create('entity_reference') $fields['actors_involved'] = BaseFieldDefinition::create('entity_reference')
->setLabel(t('Participants')) ->setLabel(t('Participants'))
->setDescription(t('People involved in this activity. To add one, start typing their name.')) ->setDescription(t('People involved in this activity. To add one, start typing their name.'))
@ -51,9 +50,9 @@ function opencase_no_cases_entity_base_field_info($entity_type) {
]) ])
->setDefaultValueCallback('opencase_no_cases_actors_involved_callback') ->setDefaultValueCallback('opencase_no_cases_actors_involved_callback')
->setRequired(TRUE); ->setRequired(TRUE);
}
return $fields; return $fields;
} }
}
/** /**
* When creating an activity, it sets the first involved party to the actor * When creating an activity, it sets the first involved party to the actor