Hi,
My probleme is the following:
I want to add a new fied to Users module.
I tried to do that by creating a custom vardefs.php in custom/modules/Users/vardefs.php (i copied the file from modules/Users/vardefs.php).
in my custom/modules/Users/vardefs.php i added my new field definition this way:
After defining the new field, i ran <<Quick Repair and Rebuild>> from the admin module ... but nothing changed in my databeCode:$dictionary['User'] = array( 'table' => 'users', 'audited' => true, 'fields' => array( 'id' => array( 'name' => 'id', 'vname' => 'LBL_ID', 'type' => 'id', 'required' => true, ) , 'user_name' => array( 'name' => 'user_name', 'vname' => 'LBL_USER_NAME', 'type' => 'user_name', 'dbType' => 'varchar', 'len' => '60', 'importable' => 'required', ) , 'user_hash' => array( 'name' => 'user_hash', 'vname' => 'LBL_USER_HASH', 'type' => 'varchar', 'len' => '32', 'reportable' => false, 'importable' => 'false', ) , ... //NEW FIELD DEFINITION 'new_field'=> array( 'name' => 'new_field', 'vname' => 'LBL_NEW_FIELD', 'type' => 'varchar', 'len' => '5', ) , ....
This is the message that the sugarcr raised when i ccliked on the Repair button.
Rebuilding Audit Tables...
User not Audit Enabled...
So my question is:
how can i add a custom field to the Users module, i want the field to be created in the database, but also viewed and editable through the Web interface when i am updating or adding a user.
Thanks.


LinkBack URL
About LinkBacks
.



Reply With Quote


Bookmarks