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
Model registry
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
angelo paglialonga
vtigercrm
Commits
493f7ac9
Commit
493f7ac9
authored
7 years ago
by
Manuel
Browse files
Options
Downloads
Patches
Plain Diff
Fix module insertion
parent
ab9870df
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vtlib/Vtiger/ModuleBasic.php
+4
-0
4 additions, 0 deletions
vtlib/Vtiger/ModuleBasic.php
with
4 additions
and
0 deletions
vtlib/Vtiger/ModuleBasic.php
+
4
−
0
View file @
493f7ac9
...
...
@@ -47,6 +47,7 @@ class Vtiger_ModuleBasic {
var
$basetableid
=
false
;
var
$customtable
=
false
;
var
$grouptable
=
false
;
var
$fieldtable
=
false
;
const
EVENT_MODULE_ENABLED
=
'module.enabled'
;
const
EVENT_MODULE_DISABLED
=
'module.disabled'
;
...
...
@@ -285,9 +286,12 @@ class Vtiger_ModuleBasic {
if
(
!
$this
->
customtable
)
$this
->
customtable
=
$this
->
basetable
.
"cf"
;
if
(
!
$this
->
grouptable
)
$this
->
grouptable
=
$this
->
basetable
.
"grouprel"
;
if
(
!
$this
->
fieldtable
)
$this
->
fieldtable
=
$this
->
basetable
.
"_user_field"
;
Vtiger_Utils
::
CreateTable
(
$this
->
basetable
,
"(
$this->basetableid
INT(19) PRIMARY KEY)"
,
true
);
Vtiger_Utils
::
CreateTable
(
$this
->
customtable
,
"(
$this->basetableid
INT(19) PRIMARY KEY)"
,
true
);
Vtiger_Utils
::
CreateTable
(
$this
->
fieldtable
,
"(recordid INT(25) NOT NULL,userid INT(25) NOT NULL,starred VARCHAR(100) NULL DEFAULT NULL)"
,
true
);
if
(
Vtiger_Version
::
check
(
'5.0.4'
,
'<='
))
{
Vtiger_Utils
::
CreateTable
(
$this
->
grouptable
,
"(
$this->basetableid
INT PRIMARY KEY, groupname varchar(100))"
,
true
);
}
...
...
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