Skip to content

Commit

Permalink
Fix #8897 - Adding missing relationship for SurveyResponses module
Browse files Browse the repository at this point in the history
  • Loading branch information
SinergiaCRM committed Jun 16, 2022
1 parent d57e913 commit 352252c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions modules/SurveyResponses/vardefs.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,25 @@
'lhs_key' => 'id',
'relationship_type' => 'one-to-many',
),
// Fix Issue 8897 - Adding missing relationships to SurveyResponses and Contacts/Accounts
'surveyresponses_contacts' => array(
'rhs_module' => 'SurveyResponses',
'rhs_table' => 'surveyresponses',
'rhs_key' => 'contact_id',
'lhs_module' => 'Contacts',
'lhs_table' => 'contacts',
'lhs_key' => 'id',
'relationship_type' => 'one-to-many',
),
'surveyresponses_accounts' => array (
'rhs_module' => 'SurveyResponses',
'rhs_table' => 'surveyresponses',
'rhs_key' => 'account_id',
'lhs_module' => 'Accounts',
'lhs_table' => 'accounts',
'lhs_key' => 'id',
'relationship_type' => 'one-to-many',
),
),
'optimistic_locking' => true,
'unified_search' => true,
Expand Down

0 comments on commit 352252c

Please sign in to comment.