Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vtigercrm
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Welcome to Vtiger Community. To gain access for account, please contact [ community @ vtiger.com ]
Show more breadcrumbs
Christian Cruz Garrido
vtigercrm
Commits
0fbc9a26
Commit
0fbc9a26
authored
4 years ago
by
Uma
Browse files
Options
Downloads
Patches
Plain Diff
Fixes
#369
#492
Emails Related-list supported for Tickets and Potentials
parent
53f2edf5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/Migration/schema/720_to_721.php
+6
-7
6 additions, 7 deletions
modules/Migration/schema/720_to_721.php
with
6 additions
and
7 deletions
modules/Migration/schema/720_to_721.php
+
6
−
7
View file @
0fbc9a26
...
...
@@ -260,14 +260,13 @@ if (defined('VTIGER_UPGRADE')) {
$block
->
addField
(
$field
);
//Adding related list between Emails and Potentials
$potentialsModule
=
Vtiger_Module_Model
::
getInstance
(
'Potentials'
);
if
(
$potentialsModule
){
$potentialsModule
->
setRelatedList
(
Vtiger_Module_Model
::
getInstance
(
'Emails'
),
'Emails'
,
'ADD'
,
'get_emails'
);
$emailRelatedModules
=
array
(
'Potentials'
,
'HelpDesk'
);
foreach
(
$emailRelatedModules
as
$key
=>
$moduleName
)
{
$moduleModel
=
Vtiger_Module_Model
::
getInstance
(
$moduleName
);
if
(
$moduleModel
){
$moduleModel
->
setRelatedList
(
Vtiger_Module_Model
::
getInstance
(
'Emails'
),
'Emails'
,
'ADD'
,
'get_emails'
);
}
$helpDeskModule
=
Vtiger_Module_Model
::
getInstance
(
'HelpDesk'
);
if
(
$helpDeskModule
){
$helpDeskModule
->
setRelatedList
(
Vtiger_Module_Model
::
getInstance
(
'Emails'
),
'Emails'
,
'ADD'
,
'get_emails'
);
}
}
print
(
'Email related list added for Tickets and Opportunities module'
);
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment