So I made some Vardefs in the ACLRoles (custom/Extentsion/modules/ACLRoles/Ext/Vardefs/file.php), but when I repair and rebuild, it does not get added to the DB(The add new column thingy doesnt show in the bottom when I repair and rebuild).
Any Ideas why? TY.
Can you share your vardef definition of file.php here?
@urdhvatech
This is my code:
<?php
$dictionary['ACLRole']['fields']['ticket_access'] = [
'required' => false,
'name' => 'ticket_access',
'vname' => 'LBL_TICKET_ACCESS',
'type' => 'multienum',
'massupdate' => 0,
'default' => '^Credit Card^,^Deposit^',
'no_default' => false,
'comments' => '',
'help' => '',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => false,
'inline_edit' => true,
'reportable' => true,
'unified_search' => false,
'merge_filter' => 'disabled',
'size' => '20',
'options' => 'smits_ticket_account_type_list',
'studio' => 'visible',
'isMultiSelect' => true,
];
$dictionary['ACLRole']['fields']['can_unmask'] = [
'required' => false,
'name' => 'can_unmask',
'vname' => 'LBL_CAN_UNMASK',
'type' => 'bool',
'massupdate' => 0,
'default' => '0',
'no_default' => false,
'comments' => '',
'help' => '',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => false,
'inline_edit' => true,
'reportable' => true,
'unified_search' => false,
'merge_filter' => 'disabled',
'len' => '255',
'size' => '20',
];
That is strange. I just tried and it works for me, I have used same definition that you have given without any changes.
Make sure you have correct directory names as per image?
A question: Version of your SuiteCRM? and PHP? I have tried on Version 7.12.3
@urdhvatech
Yes, I have the correct directory.
My SuiteCRM version is 7.11.9
Tried to check if maybe I’ve already added the fields and just forgot about it but they were not there…
Then it should work. Can you share directory structure that you created with exact name as directory names are case sensitive?
One more, Can you verify file permission of whole custom folder? If that are correct, It will be merged after quick repair at custom/modules/ACLRoles/Ext/Vardefs/vardefs.ext.php