Fixes #1094::Uma::Migration code updated to move tags from custom table to base table
Loading
-
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...
Please register or sign in to comment