Skip to content
Snippets Groups Projects
Commit 246c4e42 authored by Johannes Goderbauer's avatar Johannes Goderbauer Committed by Johannes Goderbauer
Browse files

fix #1051912: 360° Degree did not show entries of person contacts

(cherry picked from commit 554832d2)
parent 0b357a7f
No related branches found
No related tags found
No related merge requests found
import("system.vars");
import("system.result");
result.object(["Salesproject", "Offer", "Order", "Contract", "Campaign", "SupportTicket"]);
\ No newline at end of file
//No campaign, since a campaign can only be linked with a person.
//Even when all entries of persons are displayed in the organisation_entity: It's still nonsense to display campaigns per status.
result.object(["Salesproject", "Offer", "Order", "Contract", "SupportTicket"]);
\ No newline at end of file
......@@ -2,10 +2,9 @@ import("Sql_lib");
import("system.vars");
import("system.result");
var person_contactids = newSelect( "CONTACTID" )
.from("CONTACT")
.where("CONTACT.ORGANISATION_ID", vars.getString("$field.ORGANISATIONID"))
.and("CONTACT.PERSON_ID is null")
.arrayColumn();
var contactids = newSelect( "CONTACTID" )
.from("CONTACT")
.where("CONTACT.ORGANISATION_ID", vars.getString("$field.ORGANISATIONID"))
.arrayColumn();
result.string( JSON.stringify([vars.getString("$field.CONTACTID")].concat(person_contactids)) );
\ No newline at end of file
result.string( JSON.stringify(contactids) );
\ No newline at end of file
......@@ -25,6 +25,7 @@
<dateField>DATE</dateField>
<titleField>TITLE</titleField>
<descriptionField>ENTITY_NAME</descriptionField>
<iconIdField>ICON</iconIdField>
<entityField>#ENTITY</entityField>
</timelineViewTemplate>
</children>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment