Skip to content

The rows in key metrics widget changed after migration

The rows in key metrics widget changed after migration. The key metrics rows are considered as user data. It should keep consistent before and after migration.

Environment:

  • vtigerCRM version: migrate from vtigerCRM 7.4.0 to vtigerCRM 7.5.0
  • OS: ubuntu variation
  • PHP: PHP7.4

Reproduce steps:

  • install vtigercrm 7.4.0 with default modules enabled
  • open vtigerCRM web UI > click add widgets > click key metrics
  • there should be five rows as the screenshot below
  • upgrade to vitgercrm 7.5.0 with migration path
  • once the upgrade finished, there will be only one row in the key metrics widget

Why it changed:

  • the tabdata.php determines which module is enabled and utimately which row to be shown on the key metrics widget
  • during migration, the tabdata.php is re-genereted according to the setting in the database

I saw that the function createModuleMetaFile is put inside the Vtiger_Deprecated. Maybe it is time to remove it to make the key metrics rows consistent between migrations.

Screenshot before upgrade: 圖片

Screenshot after upgrade: 圖片