Skip to content
Snippets Groups Projects
Commit 9804f787 authored by Prasad's avatar Prasad
Browse files

Fixes #1094::Uma::Migration code updated to move tags from custom table to base table

parents feb48145 07cdc622
No related branches found
No related tags found
Loading
Loading
  • Alan Lord @lord_alan ·
    Contributor

    @uma.s

    One other thing you might want to change in piece of code is the initial Vtiger_Module_Model::getAll(); call.

    As far as I understand it, tags are only relevant to entity modules so using Vtiger_Module_Model::getEntityModules(); would reduce the number of iterations which the foreach loop has to check.

    In my own scripts I use the getEntityModules() method and I also added a short test for the class file before calling $moduleClass = CRMEntity::getInstance($moduleModel->getName());:

    if(!class_exists($moduleName)) {
        continue;
    }

    I could probably remove the $restrictedModules test completely with these changes...

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