Put content back into case html template
I discovered that it is where the "rendered entity" comes from.
This commit is contained in:
parent
483d1ac9d9
commit
72936b0da6
@ -17,6 +17,6 @@
|
|||||||
#}
|
#}
|
||||||
<div{{ attributes.addClass('case_entity') }}>
|
<div{{ attributes.addClass('case_entity') }}>
|
||||||
{% if content %}
|
{% if content %}
|
||||||
{# removed content because case page is managed via views and blocks #}
|
{{- content -}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
@ -26,7 +26,7 @@ class InvolvedParties extends BlockBase {
|
|||||||
$hats_involved = $case->hats_involved->referencedEntities();
|
$hats_involved = $case->hats_involved->referencedEntities();
|
||||||
foreach($hats_involved as $hat) {
|
foreach($hats_involved as $hat) {
|
||||||
$person_id = $hat->person->first()->getValue()['target_id'];
|
$person_id = $hat->person->first()->getValue()['target_id'];
|
||||||
$markup .= "<p><a href='/zencrm/person/$person_id?backto=case&backtoid=$case_id'>" . $hat->name->getString() . "</a></p>";
|
$markup .= "<p><a href='/zencrm/person/$person_id'>" . $hat->name->getString() . "</a></p>";
|
||||||
}
|
}
|
||||||
return [
|
return [
|
||||||
'#cache' => [
|
'#cache' => [
|
||||||
|
Reference in New Issue
Block a user