Skip to content
Snippets Groups Projects
Commit ab3eef18 authored by Satish's avatar Satish
Browse files

Fixes #737 - vt71 - cannot create records for many modules

parent 1f64b01d
No related branches found
No related tags found
No related merge requests found
...@@ -923,11 +923,13 @@ class Vtiger_PackageImport extends Vtiger_PackageExport { ...@@ -923,11 +923,13 @@ class Vtiger_PackageImport extends Vtiger_PackageExport {
} }
if (Vtiger_Field::getInstance('tags', $moduleInstance) === false && $moduleModel->isTagsEnabled()) { if (Vtiger_Field::getInstance('tags', $moduleInstance) === false && $moduleModel->isTagsEnabled()) {
//Adding tag field $module = (string) $moduleInstance->name;
$focus = CRMEntity::getInstance($module);
$field = new Vtiger_Field(); $field = new Vtiger_Field();
$field->name = 'tags'; $field->name = 'tags';
$field->label = 'tags'; $field->label = 'tags';
$field->table = $moduleModel->basetable; $field->table = $focus->table_name;
$field->presence = 2; $field->presence = 2;
$field->displaytype = 6; $field->displaytype = 6;
$field->readonly = 1; $field->readonly = 1;
......
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