Hi.
It's been a long time I I have been working on SugarCRM modules, so I am a bit rusty.
I am trying to update one of my old modules (calendar notes) but in the same time changing some of the structure and use later features available to developers.
When I install the module (thru module installer) all is fine and I can use everything, everything is saved correctly etc.
Once I installed another module or did a repair (using rebuilt relation ships) I loose access to fields that I placed into users_cstm (I store config info related to the notes/calendar per user).
I can access the config (each user can do this) through clicking on the user (welcome USERID), than on the users tab "Calendar Notes", than "Edit". All shows up correctly but when I hit save it does not get saved.
I can see it being save in the sugar log e.g.:
Fri 27 Jan 2012 12:51:38 EST [26660][1][INFO] Query:UPDATE users_cstm SET calnote_room='green' ......
The field is STILL visible in the users_cstm table, but when I hit save and check what shows up in the SUGAR log it does not show up, so it is lost (relation ship lost).
I have placed the field into the manifest.php (probably the problem):
'calnote_room' => array (
'id' => 'users_calnote_room',
'name' => 'calnote_room',
'label' => 'LBL_calnote_room',
'module' => 'Users',
'type' => 'varchar',
'require_option' => '0',
'default_value' => '',
'deleted' => '0',
'duplicate_merge' => '1',
'reportable' => '1',
),
So what am I doing wrong?
Do I have to place this into the vardefs.php file in the Users dir of the modules zip?
JObst


LinkBack URL
About LinkBacks



Reply With Quote


Bookmarks