SuiteCRM Version 7.13.3
I have noticed that when I export a Module and then load the modules using the module loader on another instance running the exact same version of SuiteCRM, the customization files do not seem to get updated.
I will focus on one field but this is happening on all fields from what I can tell.
In my dev box where I do the Studio changes I have specifically marked the field bmui_login_c
to NO inline editing.
The file custom/Extension/modules/Accounts/Ext/Vardefs/_override_sugarfield_bmui_login_c.php contains this
$dictionary['Account']['fields']['bmui_login_c']['inline_edit']='';
$dictionary['Account']['fields']['bmui_login_c']['labelValue']='Portal Login';
I then export the Account module and go over to my demo server and uninstall and delete the existing Accounting Module customizations in the Module Loader. Upload a new version, Install and R&R.
After this I review the file custom/Extension/modules/Accounts/Ext/Vardefs/_override_sugarfield_bmui_login_c.php
root:ls -lar _override_sugarfield_bmui_login_c.php
-rw-rw-r-- 1 www-data www-data 110 Aug 25 09:10 _override_sugarfield_bmui_login_c.phproot:cat _override_sugarfield_bmui_login_c.php
<?php
// created: 2023-08-25 09:10:54
$dictionary['Account']['fields']['bmui_login_c']['inline_edit']=1;
As you can see the file permissions are good and the timestamp in the file shows the time I imported. but the inline_edit value did not change and the labelValue is missing.
Here are relavant lines from the suitecrm.log file.
Fri Aug 25 09:10:24 2023 [27618][1][DEBUG] Unlink custom/Extension/modules/Accounts/Ext/Vardefs/_override_sugarfield_bmui_login_c.php
Fri Aug 25 09:10:24 2023 [27618][1][DEBUG] Restoring … upload/upgrades/module/Accounts-restore/custom/Extension/modules/Accounts/Ext/Vardefs/_override_sugarfield_bmui_login_c.php to custom/Extension/modules/Accounts/Ext/Vardefs/_override_sugarfield_bmui_login_c.php
…
Fri Aug 25 09:10:54 2023 [27543][1][DEBUG] Copying …/Extension/modules/Accounts/Ext/Vardefs/_override_sugarfield_bmui_login_c.php to custom/Extension/modules/Accounts/Ext/Vardefs/_override_sugarfield_bmui_login_c.php
Fri Aug 25 09:10:54 2023 [27543][1][DEBUG] Copy cache/upgrades/temp/MMtZj7/Extension/modules/Accounts/Ext/Vardefs/_override_sugarfield_bmui_login_c.php
Fri Aug 25 09:10:54 2023 [27543][1][DEBUG] Backup … custom/Extension/modules/Accounts/Ext/Vardefs/_override_sugarfield_bmui_login_c.php to upload/upgrades/module/Accounts2023_08_25_073043-restore/custom/Extension/modules/Accounts/Ext/Vardefs/_override_sugarfield_bmui_login_c.php
…
Fri Aug 25 09:10:54 2023 [27543][1][DEBUG] Retrieve FieldsMetaData : SELECT fields_meta_data.* FROM fields_meta_data WHERE fields_meta_data.id = ‘Accountsbmui_login_c’
Fri Aug 25 09:10:54 2023 [27543][1][DEBUG] Limit Query:SELECT fields_meta_data.* FROM fields_meta_data WHERE fields_meta_data.id = ‘Accountsbmui_login_c’ Start: 0 count: 1
Fri Aug 25 09:10:54 2023 [27543][1][INFO] Query:SELECT fields_meta_data.* FROM fields_meta_data WHERE fields_meta_data.id = ‘Accountsbmui_login_c’ LIMIT 0,1
Fri Aug 25 09:10:54 2023 [27543][1][INFO] Query Execution Time:0.00016880035400391
Fri Aug 25 09:10:54 2023 [27543][1][DEBUG] Hook called: DynamicFields::after_retrieve
Fri Aug 25 09:10:54 2023 [27543][1][INFO] tableExists: accounts_cstm
Fri Aug 25 09:10:54 2023 [27543][1][INFO] Query:SHOW TABLES LIKE ‘accounts_cstm’
Fri Aug 25 09:10:54 2023 [27543][1][INFO] Query Execution Time:0.00085783004760742
Fri Aug 25 09:10:54 2023 [27543][1][INFO] Query:ALTER TABLE accounts_cstm modify COLUMNbmui_login_c
varchar(255) NULL
Fri Aug 25 09:10:54 2023 [27543][1][INFO] Query Execution Time:0.00062894821166992
Fri Aug 25 09:10:54 2023 [27543][1][INFO] Formatting correction: DynamicFields->date_modified had formatting automatically corrected.
Fri Aug 25 09:10:54 2023 [27543][1][DEBUG] Hook called: DynamicFields::before_save
Fri Aug 25 09:10:54 2023 [27543][1][INFO] Query:UPDATE fields_meta_data
SETname
=‘bmui_login_c’,vname
=‘LBL_BMUI_LOGIN’,comments
=NULL,help
=‘A duplicate check is performed after entering’,custom_module
=‘Accounts’,type
=‘varchar’,len
=255,required
=0,date_modified
=‘2023-08-25 14:10:53’,audited
=1,massupdate
=0,duplicate_merge
=0,reportable
=1,importable
=‘true’,ext4
=NULL
WHERE fields_meta_data.id = ‘Accountsbmui_login_c’ AND deleted=0
I am trying to figure out why the override files is getting updated but do not contain the right contents. The problem that this is causing is now I have to keep track ever every studio change and then manually go make it happen on other instances.
Does anyone have any idea why this might be happening.
Thank you
Tony